Example Dockerfile
FROM node:12-alpine
# Adding build tools to make yarn install work on Apple silicon / arm64 machines
RUN apk --no-cache --virtual build-dependencies add python2 make g++
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]