diff --git a/base/Dockerfile.alpine b/base/Dockerfile.alpine index aad9ae0..06beec3 100644 --- a/base/Dockerfile.alpine +++ b/base/Dockerfile.alpine @@ -1,8 +1,8 @@ FROM alpine:3.16 LABEL maintainer="Jian Zeng " \ org.ustcmirror.images=true -ADD ["entry.sh", "savelog", "/usr/local/bin/"] -VOLUME ["/data", "/log"] -ENTRYPOINT ["entry.sh"] RUN apk add --no-cache bash tzdata su-exec && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +ADD ["entry.sh", "savelog", "/usr/local/bin/"] +VOLUME ["/data", "/log"] +CMD ["/entry.sh"] diff --git a/base/Dockerfile.alpine-edge b/base/Dockerfile.alpine-edge index 45021a9..f9c331c 100644 --- a/base/Dockerfile.alpine-edge +++ b/base/Dockerfile.alpine-edge @@ -1,8 +1,8 @@ FROM alpine:edge LABEL maintainer="Yifan Gao" \ org.ustcmirror.images=true -ADD ["entry.sh", "savelog", "/usr/local/bin/"] -VOLUME ["/data", "/log"] -ENTRYPOINT ["entry.sh"] RUN apk add --no-cache bash tzdata su-exec && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +ADD ["entry.sh", "savelog", "/usr/local/bin/"] +VOLUME ["/data", "/log"] +CMD ["/entry.sh"] diff --git a/base/Dockerfile.centos b/base/Dockerfile.centos index 2844f9e..9cc7db5 100644 --- a/base/Dockerfile.centos +++ b/base/Dockerfile.centos @@ -1,9 +1,9 @@ FROM centos:7 LABEL maintainer="Jian Zeng " \ org.ustcmirror.images=true -ADD ["entry.sh", "savelog", "/usr/local/bin/"] -VOLUME ["/data", "/log"] -ENTRYPOINT ["entry.sh"] RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ curl -fLo /usr/local/bin/su-exec https://ftp.lug.ustc.edu.cn/misc/su-exec && chmod +x /usr/local/bin/su-exec && \ echo "592f25c51d0e4c90945ece8c4fa35018d20a1091ac109c98b66eb95deef211c7 /usr/local/bin/su-exec" | sha256sum -c - +ADD ["entry.sh", "savelog", "/usr/local/bin/"] +VOLUME ["/data", "/log"] +CMD ["/entry.sh"] diff --git a/base/Dockerfile.debian b/base/Dockerfile.debian index 4fe0c9e..2411034 100644 --- a/base/Dockerfile.debian +++ b/base/Dockerfile.debian @@ -1,11 +1,11 @@ FROM debian:bookworm-slim LABEL maintainer="Jian Zeng " \ org.ustcmirror.images=true -ADD ["entry.sh", "savelog", "/usr/local/bin/"] -VOLUME ["/data", "/log"] -ENTRYPOINT ["entry.sh"] RUN echo 'Asia/Shanghai' > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && \ apt-get update && apt-get install -y wget && \ wget -O /usr/local/bin/su-exec https://ftp.ustclug.org/misc/su-exec && chmod +x /usr/local/bin/su-exec && \ echo "592f25c51d0e4c90945ece8c4fa35018d20a1091ac109c98b66eb95deef211c7 /usr/local/bin/su-exec" | sha256sum -c - && \ apt-get purge -y --auto-remove wget && rm -rf /var/lib/apt/lists/* +ADD ["entry.sh", "savelog", "/usr/local/bin/"] +VOLUME ["/data", "/log"] +CMD ["/entry.sh"]