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