Skip to content

Commit

Permalink
Revert "Only mount the app directory for assets service"
Browse files Browse the repository at this point in the history
This reverts commit f0e160c.
  • Loading branch information
soey committed Apr 17, 2024
1 parent f0e160c commit f21e4ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ services:

assets:
<<: *x-dev-defaults
volumes:
- ./app:/app/app
# As we have mounted the app directory into the container and esbuild expects the
# node_module folder therein: In case there is no node_module folder on the host machine
# run npm install to build node_modules in this mounted directory (app). Then just run npm run dev.
command: >
bash -c 'if [ ! -d "node_modules" ]; then npm install; fi && npm run dev'
job-worker:
<<: *x-dev-defaults
Expand Down

0 comments on commit f21e4ab

Please sign in to comment.