Dockerfile: create db directory
This commit is contained in:
parent
6efb6e5876
commit
b1e464fe50
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue