diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-01 17:46:25 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-01 17:46:25 +0200 |
commit | eccff94f34d0bc8d09b0533ae4fab2acb530c04b (patch) | |
tree | 2ea5ed798bdd9eeccdc3e3e5f776ac8a8325a9cc /Dockerfile | |
parent | ci.sh: build w/ clang last (diff) | |
download | cimple-eccff94f34d0bc8d09b0533ae4fab2acb530c04b.tar.gz cimple-eccff94f34d0bc8d09b0533ae4fab2acb530c04b.zip |
Dockerfile: refactoring
Diffstat (limited to '')
-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"] |