Dockerfile: create db directory

This commit is contained in:
Wroclaw 2024-04-26 06:14:57 +02:00
parent 6efb6e5876
commit b1e464fe50

View file

@ -20,6 +20,12 @@ RUN npx tsc
# regardless of the user of the container # regardless of the user of the container
RUN chmod 777 dist 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 # Run the app
CMD ["node", "dist/src/index.js"] CMD ["node", "dist/src/index.js"]
STOPSIGNAL SIGINT STOPSIGNAL SIGINT