aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-05-01 17:46:25 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-05-01 17:46:25 +0200
commiteccff94f34d0bc8d09b0533ae4fab2acb530c04b (patch)
tree2ea5ed798bdd9eeccdc3e3e5f776ac8a8325a9cc /Dockerfile
parentci.sh: build w/ clang last (diff)
downloadcimple-eccff94f34d0bc8d09b0533ae4fab2acb530c04b.tar.gz
cimple-eccff94f34d0bc8d09b0533ae4fab2acb530c04b.zip
Dockerfile: refactoring
Diffstat (limited to '')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 995f4a2..47312bf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]