container-projects / react-multi-build-app / Dockerfile
Dockerfile
Raw
FROM node:19-alpine as build

WORKDIR /app

COPY ./package*.json /app/

RUN npm install

COPY . /app/

RUN npm run build


FROM nginx:1.19

COPY ./nginx/nginx.conf /etc/nginx/nginx.conf

COPY --from=build /app/build /usr/share/nginx/html