diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-09-11 20:23:24 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-09-11 20:23:24 +0300 |
commit | 23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a (patch) | |
tree | 5ee5e59339bf2af98039ec4584f8a01410a95c11 /Dockerfile | |
parent | log: refactoring (diff) | |
download | cimple-23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a.tar.gz cimple-23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a.zip |
create SQLite database on startup
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"] |