Separacion de docker para producion y desarrollo
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
FROM node:alpine as build
|
||||
|
||||
WORKDIR /angular
|
||||
COPY package.json package-lock.json /angular/
|
||||
RUN npm install
|
||||
COPY . /angular
|
||||
RUN npm run build --prod
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
COPY --from=build /angular/dist/frontend /usr/share/nginx/html
|
||||
ENTRYPOINT ["npm", "run", "start"]
|
||||
|
||||
Reference in New Issue
Block a user