Added volume (and config) for server persistence

This commit is contained in:
Raul P 2022-03-13 02:06:00 +01:00 committed by GitHub
parent 89297d7bd1
commit feebf4f4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]
VOLUME /data
ENTRYPOINT ["/srv/telegram-bot-api", "--dir=/data"]