Skip to content

Commit

Permalink
fix: Docker production issues with static files and logs (#276)
Browse files Browse the repository at this point in the history
* fix: location of statics folder in Docker image

* fix: not all production workers logging to stdout
  • Loading branch information
Yoronex authored Aug 23, 2024
1 parent e027172 commit bd1ba2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ RUN chmod +x /app/init_scripts/start.sh

COPY --from=build --chown=node /app/out/src /app/out/src
COPY --from=build --chown=node /app/out/swagger.json /app/out/swagger.json
COPY --from=build --chown=node /app/static /app/static
COPY --from=build --chown=node /app/static /app/out/static

CMD ["sh", "/app/init_scripts/start.sh"]
2 changes: 1 addition & 1 deletion init_scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ chmod +x /app/init_scripts/00_make_sudosos_data_dirs.sh
chmod +x /app/init_scripts/00_regen_sudosos_secrets.sh
sh /app/init_scripts/00_make_sudosos_data_dirs.sh
sh /app/init_scripts/00_regen_sudosos_secrets.sh
pm2-runtime start /app/pm2.json
pm2 start /app/pm2.json --attach

0 comments on commit bd1ba2b

Please sign in to comment.