We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f7831 commit 379299bCopy full SHA for 379299b
1 file changed
docker/Dockerfile.deps
@@ -1,11 +1,10 @@
1
-# 通用依赖镜像:基于任意 ubuntu/debian 基础镜像,预先跑好 install_deps.sh
2
-# 用法(构建时传入 BASE_IMAGE):
+# Dep image
3
# docker build --build-arg BASE_IMAGE=ubuntu:noble -f docker/Dockerfile.deps -t xxx .
4
ARG BASE_IMAGE
5
FROM ${BASE_IMAGE}
6
7
-COPY install_deps.sh /tmp/install_deps.sh
+COPY --chmod=755 install_deps.sh /tmp/install_deps.sh
+COPY builddep/ /tmp/builddep/
8
9
-RUN chmod +x /tmp/install_deps.sh \
10
- && /tmp/install_deps.sh \
11
- && rm -f /tmp/install_deps.sh
+RUN cd /tmp && ./install_deps.sh \
+ && rm -rf /tmp/install_deps.sh /tmp/builddep
0 commit comments