# pull official base image
FROM node:14-alpine as builder

RUN apk --no-cache --virtual build-dependencies add python3 make g++

# set working directory
WORKDIR /app

# install dependencies
COPY package.json .
COPY yarn.lock .
RUN yarn install

# copy project
COPY . .

# run project
CMD ["yarn", "start"]

EXPOSE 3000