Files
frontend/Dockerfile
Michel Wilhelm 5b5500f6ac
All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 48s
Usando npm ci
2025-02-05 11:56:28 -03:00

16 lines
260 B
Docker

FROM node:12 AS build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm ci
COPY ./ /app/
RUN npm run build
FROM nginx:1.15
COPY --from=build-stage /app/build/ /usr/share/nginx/html
COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf