Agregando cambios para compilar en el servidor
This commit is contained in:
@@ -3,7 +3,7 @@ WORKDIR /angular
|
|||||||
COPY package.json package-lock.json /angular/
|
COPY package.json package-lock.json /angular/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY . /angular
|
COPY . /angular
|
||||||
RUN npm run build --prod
|
RUN npm run prod
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
COPY --from=build /angular/dist/frontend /usr/share/nginx/html
|
COPY --from=build /angular/dist/frontend /usr/share/nginx/html
|
||||||
|
|||||||
16300
frontend/package-lock.json
generated
16300
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,7 @@
|
|||||||
"start": "ng serve --host 0.0.0.0",
|
"start": "ng serve --host 0.0.0.0",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
|
"prod": "node --max_old_space_size=500 ./node_modules/@angular/cli/bin/ng build",
|
||||||
"test": "ng test"
|
"test": "ng test"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user