mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-01-31 11:46:16 +08:00
chore(docker): optimize server dockerfile with docker-ce-cli installation
- Replace full docker.io package with lightweight docker-ce-cli to reduce image size - Add ca-certificates and gnupg dependencies for secure package management - Improve Docker installation process for local Worker task distribution - Reduce unnecessary dependencies in server container build
This commit is contained in:
@@ -11,7 +11,10 @@ RUN apt-get update && apt-get install -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 安装 Docker CLI(用于本地 Worker 任务分发)
|
||||
RUN apt-get update && apt-get install -y docker.io && rm -rf /var/lib/apt/lists/*
|
||||
# 只安装 docker-ce-cli,避免安装完整 Docker 引擎
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ca-certificates gnupg && \
|
||||
install -m 07
|
||||
|
||||
# 安装 uv(超快的 Python 包管理器)
|
||||
RUN pip install uv
|
||||
|
||||
Reference in New Issue
Block a user