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
+1 -1
View File
@@ -25,4 +25,4 @@ services:
context: ./frontend
dockerfile: ./Dockerfile
ports:
- 4200:80
- 4200:4200
+3 -9
View File
@@ -1,17 +1,11 @@
# Stage 1
FROM node:alpine AS build-image
FROM node:alpine
WORKDIR /app
COPY . .
RUN npm ci && npm run build
RUN npm install
# Stage 2
FROM nginx:alpine
COPY --from=build-image /app/dist/app-fe /usr/share/nginx/html
EXPOSE 80
ENTRYPOINT npm run -- ng serve --host 0.0.0.0 --port 4200