Skip to content

Commit 02726cd

Browse files
Move frontend container command back to Dockerfile.dev
1 parent 8013bad commit 02726cd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ services:
8888
- ./frontend:/usr/src/app
8989
- frontend-node-modules:/usr/src/app/node_modules
9090
- frontend-angular-cache:/usr/src/app/.angular
91-
command: ng serve --host 0.0.0.0 --disable-host-check --poll 200
9291
ports:
9392
- 127.0.0.1:4200:4200
9493
- 127.0.0.1:9876:9876

frontend/Dockerfile.dev

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ RUN yarn install --frozen-lockfile
1212

1313
# Expose the port for the development server.
1414
EXPOSE 4200
15+
16+
# Start the development server. The poll flag allows for live reloading.
17+
CMD ["ng", "serve", "--host", "0.0.0.0", "--disable-host-check", "--poll", "200"]

0 commit comments

Comments
 (0)