Speed up one-click Docker deployment

This commit is contained in:
Rixuan Shao
2026-05-30 01:56:12 +08:00
parent 706bd6a19f
commit a3b063d2ae
5 changed files with 30 additions and 32 deletions
+1 -9
View File
@@ -31,9 +31,7 @@ RUN set -eux; \
&& sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list \
&& ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
&& apt-get update && apt-get install -y \
cron \
curl \
&& apt-get update && apt-get install -y --no-install-recommends \
fluxbox \
fonts-wqy-zenhei \
fonts-noto-cjk \
@@ -41,12 +39,6 @@ RUN set -eux; \
websockify \
x11vnc \
xfonts-intl-chinese \
&& download() { url="$1"; output="$2"; proxy_url="${HTTPS_PROXY:-${https_proxy:-${HTTP_PROXY:-${http_proxy:-}}}}"; if [ -n "$proxy_url" ]; then curl -fsSL -x "$proxy_url" "$url" -o "$output"; else curl -fsSL "$url" -o "$output"; fi; } \
&& download https://download.docker.com/linux/static/stable/x86_64/docker-25.0.3.tgz docker.tgz \
&& tar xzvf docker.tgz \
&& mv docker/docker /usr/bin/docker \
&& chmod +x /usr/bin/docker \
&& rm -rf docker docker.tgz \
&& rm -rf /var/lib/apt/lists/*
COPY . .