Skip to content

Commit 896d19a

Browse files
author
wess09
committed
fix(docker): 添加必要的依赖项以支持构建,移除多余的COPY指令
1 parent a48b8af commit 896d19a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
2424

2525
RUN apt-get update && \
2626
apt-get install -y --no-install-recommends \
27+
ca-certificates \
28+
git \
29+
openssh-client \
2730
libgomp1 \
2831
libgl1 \
2932
libglib2.0-0 \
3033
libxcb1 && \
3134
apt-get clean && \
3235
rm -rf /var/lib/apt/lists/*
3336

34-
COPY . .
35-
3637
CMD ["uv", "run", "python", "gui.py"]

deploy/docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
2424

2525
RUN apt-get update && \
2626
apt-get install -y --no-install-recommends \
27+
ca-certificates \
28+
git \
29+
openssh-client \
2730
libgomp1 \
2831
libgl1 \
2932
libglib2.0-0 \
3033
libxcb1 && \
3134
apt-get clean && \
3235
rm -rf /var/lib/apt/lists/*
3336

34-
COPY . .
35-
3637
CMD ["uv", "run", "python", "gui.py"]

0 commit comments

Comments
 (0)