FROM node:14.17.0
ARG NODE_ENV=staging

#RUN apt update && apt install -y zip

WORKDIR /app
COPY . .

RUN yarn install
RUN yarn global add serve
RUN yarn build

EXPOSE 3000

CMD [ "serve", "-s", "build" ]