diff --git a/apt-sync/Dockerfile b/apt-sync/Dockerfile index b54919a..038a41a 100644 --- a/apt-sync/Dockerfile +++ b/apt-sync/Dockerfile @@ -1,7 +1,10 @@ FROM ustcmirror/base:alpine LABEL maintainer="iBug " LABEL bind_support=true -RUN apk add --no-cache --update wget perl ca-certificates git python3 py3-requests && \ +RUN < /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && \ - apt-get update && apt-get install -y wget && \ - wget -O /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 - && \ - apt-get purge -y --auto-remove wget && rm -rf /var/lib/apt/lists/* +RUN --mount=type=cache,target=/var/cache/apt \ + --mount=type=cache,sharing=locked,target=/var/lib/apt < /etc/timezone + dpkg-reconfigure -f noninteractive tzdata + apt-get update && apt-get install -y wget + wget -O /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 - + apt-get purge -y --auto-remove wget +EOF ADD ["entry.sh", "savelog", "/usr/local/bin/"] VOLUME ["/data", "/log"] CMD ["entry.sh"] diff --git a/docker-ce/Dockerfile b/docker-ce/Dockerfile index a4e1135..2142b1c 100644 --- a/docker-ce/Dockerfile +++ b/docker-ce/Dockerfile @@ -1,7 +1,9 @@ FROM ustcmirror/base:alpine LABEL maintainer="Keyu Tao " -RUN apk add --no-cache --update wget perl ca-certificates git python3 py3-requests py3-pip py3-lxml && \ - pip3 install pyquery && \ - mkdir -p /usr/local/lib/tunasync +RUN <