aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 22:39:15 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 22:39:15 +0200
commitc317decd316a7defcda3bb1a6590c170681ce3c3 (patch)
treea3cebbd49197e25ca8e8aa470257aa28d5045ecc /Dockerfile
parentserver: notify workers about requeued jobs (diff)
downloadcimple-c317decd316a7defcda3bb1a6590c170681ce3c3.tar.gz
cimple-c317decd316a7defcda3bb1a6590c170681ce3c3.zip
docker: shorten command values
Diffstat (limited to '')
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 368524b..3a5531d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,6 +6,8 @@ FROM base AS builder
RUN apk add --no-cache bsd-compat-headers build-base clang cmake libgit2-dev
+ARG default_host=127.0.0.1
+
ARG src_dir="/app/src"
ARG build_dir="/app/build"
ARG install_dir
@@ -15,6 +17,7 @@ COPY [".", "$src_dir"]
RUN mkdir -- "$build_dir" && \
cd -- "$build_dir" && \
cmake \
+ -D "DEFAULT_HOST=$default_host" \
-D CMAKE_C_COMPILER=clang \
-D CMAKE_BUILD_TYPE=Release \
-D "CMAKE_INSTALL_PREFIX=$install_dir" \