Se recurre a usar imagenes pre-compiladas para evitar carga en el
servidor
This commit is contained in:
@@ -3,7 +3,7 @@ WORKDIR /angular
|
||||
COPY package.json package-lock.json /angular/
|
||||
RUN npm install
|
||||
COPY . /angular
|
||||
RUN npm run prod
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
COPY --from=build /angular/dist/frontend /usr/share/nginx/html
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"start": "ng serve --host 0.0.0.0",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"prod": "node --max_old_space_size=500 ./node_modules/@angular/cli/bin/ng build",
|
||||
"test": "ng test"
|
||||
},
|
||||
"private": true,
|
||||
|
||||
Reference in New Issue
Block a user