1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22#React app image FROM node:lts-alpine as build WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build FROM nginx COPY --from=build /app/build /usr/share/nginx/html COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 0080/tcp CMD ["nginx", "-g", "daemon off;"]