aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-09-11 20:23:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-09-11 20:23:24 +0300
commit23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a (patch)
tree5ee5e59339bf2af98039ec4584f8a01410a95c11 /Dockerfile
parentlog: refactoring (diff)
downloadcimple-23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a.tar.gz
cimple-23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a.zip
create SQLite database on startup
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 295b3ff..cae72f3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@ ARG install_dir="/app/install"
FROM base AS builder
-RUN apk add --no-cache bash bsd-compat-headers build-base clang cmake libgit2-dev
+RUN apk add --no-cache bash bsd-compat-headers build-base clang cmake libgit2-dev sqlite-dev
ARG C_COMPILER=clang
ARG BUILD_TYPE=Release
@@ -26,7 +26,7 @@ FROM base
LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"
-RUN apk add --no-cache tini libgit2
+RUN apk add --no-cache tini libgit2 sqlite-dev
ARG install_dir
COPY --from=builder ["$install_dir", "$install_dir"]
@@ -35,4 +35,4 @@ ENV PATH="$install_dir/bin:${PATH}"
WORKDIR "$install_dir/bin"
ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["cimple-server"]
+CMD ["cimple-server", "--sqlite", "/var/lib/cimple/cimple.sqlite"]