File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,5 +33,5 @@ EXPOSE 4000
3333
3434# On startup, run this command to start application in dev mode
3535ENTRYPOINT [ "npm" , "run" , "serve" ]
36- # By default set host to 0.0.0.0 for UI
37- CMD ["--" , "--host 0.0.0.0" ]
36+ # By default set host to 0.0.0.0 for UI. Poll for changes every 5 seconds (if any detected, app will rebuild/restart)
37+ CMD ["--" , "--host 0.0.0.0" , "--poll 5000" ]
Original file line number Diff line number Diff line change @@ -38,3 +38,7 @@ services:
3838 target : 4000
3939 - published : 9876
4040 target : 9876
41+ volumes :
42+ # Mount the local 'src' directory to the '/app' directory on the container.
43+ # Allows the UI to "watch" this directory for changes and reload/rebuild when changes are detected.
44+ - ../src:/app/src
You can’t perform that action at this time.
0 commit comments