Dejando el servicio de frontend estatico
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user