From e5dae6db990cd334ad68490d40d60fa56d85d6d7 Mon Sep 17 00:00:00 2001 From: JuniorJPDJ Date: Wed, 23 Dec 2020 17:05:36 +0100 Subject: [PATCH] Persistent db in docker --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 445170b..5217d0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,7 @@ RUN cd locales && find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec ash -c 'm RUN pip install -r requirements.txt +VOLUME /app/data +ENV UNO_DB /app/data/uno.sqlite3 + ENTRYPOINT python3 ./bot.py