FROM node
WORKDIR /app
COPY . .
RUN yarn install
RUN yarn run build
RUN npm install --production
COPY --from=0 /app/build ./build
CMD ["node", "index.js"]