FROM node:14.15.1 AS base # Copy project file COPY . . # Build project RUN yarn install && yarn generate FROM nginx:1.19-alpine COPY nginx.conf /etc/nginx/conf.d/nginx.conf COPY --from=base dist /var/www/html/dist/