Se recurre a usar imagenes pre-compiladas para evitar carga en el

servidor
This commit is contained in:
2021-07-27 01:43:41 -04:00
parent d204d9b214
commit a38dc8fd37
5 changed files with 3 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -2,16 +2,12 @@ version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: ./Dockerfile.prod
image: unified-restaurant-backend
ports:
- 8080:8080
frontend:
build:
context: ./frontend
dockerfile: ./Dockerfile.prod
image: unified-restaurant-frontend
ports:
- 4200:80

View File

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

View File

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