use angular cli server;
This commit is contained in:
parent
db52ac7b75
commit
53c134021e
@ -25,4 +25,4 @@ services:
|
||||
context: ./frontend
|
||||
dockerfile: ./Dockerfile
|
||||
ports:
|
||||
- 4200:80
|
||||
- 4200:4200
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user