Listo para produccion

This commit is contained in:
2021-12-16 01:00:27 -03:00
parent 8ac3179b35
commit cf64b2d040
11 changed files with 57 additions and 526 deletions

View File

@@ -1,2 +1,18 @@
FROM nginx:latest
COPY ./public/ /usr/share/nginx/html/
FROM node:16 as builder
WORKDIR /usr/app/src
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY . .
RUN npm run build
##################################################################
FROM nginx:latest as deployer
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /usr/app/src/public /usr/share/nginx/html