use angular cli server;

This commit is contained in:
Marco Zeisler 2021-05-04 22:22:08 +02:00
parent db52ac7b75
commit 53c134021e
2 changed files with 4 additions and 10 deletions

View File

@ -25,4 +25,4 @@ services:
context: ./frontend context: ./frontend
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
ports: ports:
- 4200:80 - 4200:4200

View File

@ -1,17 +1,11 @@
# Stage 1 # Stage 1
FROM node:alpine AS build-image FROM node:alpine
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN npm ci && npm run build RUN npm install
# Stage 2 ENTRYPOINT npm run -- ng serve --host 0.0.0.0 --port 4200
FROM nginx:alpine
COPY --from=build-image /app/dist/app-fe /usr/share/nginx/html
EXPOSE 80