diff options
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,8 @@ ARG install_dir="/app/install" FROM base AS builder -RUN apk add -q --no-cache bash bsd-compat-headers build-base clang cmake libgit2-dev python3 sqlite-dev +RUN build_deps='bash bsd-compat-headers build-base clang cmake libgit2-dev python3 sqlite-dev' && \ + apk add -q --no-cache $build_deps ARG C_COMPILER=clang ARG BUILD_TYPE=Release @@ -26,7 +27,8 @@ FROM base LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>" -RUN apk add -q --no-cache tini libgit2 sqlite-dev +RUN runtime_deps='tini libgit2 sqlite-dev' && \ + apk add -q --no-cache $runtime_deps ARG install_dir COPY --from=builder ["$install_dir", "$install_dir"] |