From b1e464fe509413443dfcd6ce890afd7c3f43b329 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Fri, 26 Apr 2024 06:14:57 +0200 Subject: [PATCH] Dockerfile: create db directory --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 52b9fb1..6386189 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,12 @@ RUN npx tsc # regardless of the user of the container RUN chmod 777 dist +# Create a db directory for sqlite database file +# it is required because in order to write to sqlite file +# the directory must be writable +RUN mkdir /db +RUN chmod 777 /db + # Run the app CMD ["node", "dist/src/index.js"] STOPSIGNAL SIGINT