FROM node:16-alpine3.15 AS builder
WORKDIR /app/website
COPY . /app/website
RUN yarn
RUN yarn build

FROM nginx:1.22.0-alpine
COPY --from=builder /app/website/build /usr/share/nginx/html
EXPOSE 80
