Dockerfile: chmod dist to 777 for config.ts compilation
This commit is contained in:
parent
b567e13f2a
commit
370b7623b5
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ COPY src ./src
|
||||||
COPY scripts ./scripts
|
COPY scripts ./scripts
|
||||||
RUN npx tsc
|
RUN npx tsc
|
||||||
|
|
||||||
|
# Permissions for dist directory,
|
||||||
|
# so config.ts can be compiled there during runtime
|
||||||
|
# regardless of the user of the container
|
||||||
|
RUN chmod 777 dist
|
||||||
|
|
||||||
# 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