Skip to content

Commit

Permalink
Add anon volumes for node_modules and dist
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Nov 15, 2024
1 parent a51be47 commit 0f160e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
web-app:
web-app:
entrypoint: loop_entrypoints.sh
command: infinite_loop.sh
healthcheck:
Expand All @@ -19,6 +19,9 @@ services:
volumes:
# This prevents git unpushed changes from being lost on container restart
- ${DEV_VOLUME:-${APP}}_dev:${WORKDIR:-/home/node/app}
# These allow to keep changes from npm install/build from Dockerfile CMDs
- ${WORKDIR:-/home/node/app}/dist
- ${WORKDIR:-/home/node/app}/node_modules
node-app-from-remote:
extends: node-app-from-local
image: ''
Expand Down

0 comments on commit 0f160e0

Please sign in to comment.