Skip to content

Commit 379299b

Browse files
committed
docker: fix images
1 parent a8f7831 commit 379299b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

docker/Dockerfile.deps

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# 通用依赖镜像:基于任意 ubuntu/debian 基础镜像,预先跑好 install_deps.sh
2-
# 用法(构建时传入 BASE_IMAGE):
1+
# Dep image
32
# docker build --build-arg BASE_IMAGE=ubuntu:noble -f docker/Dockerfile.deps -t xxx .
43
ARG BASE_IMAGE
54
FROM ${BASE_IMAGE}
65

7-
COPY install_deps.sh /tmp/install_deps.sh
6+
COPY --chmod=755 install_deps.sh /tmp/install_deps.sh
7+
COPY builddep/ /tmp/builddep/
88

9-
RUN chmod +x /tmp/install_deps.sh \
10-
&& /tmp/install_deps.sh \
11-
&& rm -f /tmp/install_deps.sh
9+
RUN cd /tmp && ./install_deps.sh \
10+
&& rm -rf /tmp/install_deps.sh /tmp/builddep

0 commit comments

Comments
 (0)