FROM node:latest # some dir for our code WORKDIR /app # container port EXPOSE 8080 # install dependencies COPY package*.json . RUN yarn # copy code COPY . . RUN yarn build # this is how we start CMD ["yarn", "start"]