From feebf4f4ed8b3e57140ff66ffaa839a508edf605 Mon Sep 17 00:00:00 2001 From: Raul P <7972545+rapejim@users.noreply.github.com> Date: Sun, 13 Mar 2022 02:06:00 +0100 Subject: [PATCH] Added volume (and config) for server persistence --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 037bbb7..92cf66e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,5 @@ RUN cd /srv/build && cmake --build . --target install FROM alpine:latest RUN apk add --no-cache zlib-dev openssl-dev libstdc++ COPY --from=buildBase /srv/build/telegram-bot-api /srv/telegram-bot-api -ENTRYPOINT ["/srv/telegram-bot-api"] \ No newline at end of file +VOLUME /data +ENTRYPOINT ["/srv/telegram-bot-api", "--dir=/data"]