Dejando el servicio de frontend estatico

This commit is contained in:
2021-07-13 14:31:52 -04:00
parent ea34783668
commit 30f08264cb
2 changed files with 7 additions and 21 deletions

View File

@@ -1,14 +1,9 @@
FROM node:14-alpine
FROM node:alpine as build
WORKDIR /angular
COPY package.json /angular
COPY package-lock.json /angular
ENV NODE_OPTIONS="--max_old_space_size=400"
RUN npm install --verbose
COPY package.json package-lock.json /angular/
RUN npm install
COPY . /angular
RUN npm run build --prod
ENTRYPOINT ["/angular/node_modules/@angular/cli/bin/ng", "serve", "--host", "0.0.0.0"]
FROM nginx:stable-alpine
COPY --from=build /angular/dist/frontend /usr/share/nginx/html