FROM node:14.15.1 AS base
# Copy project file
COPY . .
# Build project
RUN yarn install
RUN yarn run build


FROM nginx:1.19-alpine
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
COPY --from=base dist /var/www/html/dist/