Byron Murillo

#My first Dockerfile :)

alt text

STEP 1 React Build App

FROM node:12-alpine3.12 AS build WORKDIR /app COPY package.json ./ RUN npm install COPY . . RUN npm run build

STEP 2 Create Nginx server

FROM nginx:1.19.0-alpine AS prod-stage COPY --from=build /app/build /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]