Agregando cambios para compilar en el servidor

This commit is contained in:
2021-07-27 01:28:27 -04:00
parent c3ec9c34a4
commit 60489afc03
3 changed files with 16200 additions and 103 deletions

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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,