FROM node:lts AS node WORKDIR /app COPY package*.json . RUN npm install --production COPY . . RUN npm run build FROM nginx:alpine COPY --from=node /app/build /usr/share/nginx/html EXPOSE 80 443