FROM node:lts-buster-slim

ENV PORT=6000

# Create app directory
WORKDIR /usr/src/app

COPY package.json package.json
COPY yarn.lock yarn.lock

RUN yarn

COPY . .

RUN yarn build

EXPOSE ${PORT}

CMD [ "yarn", "start"] 