FROM node:15.12.0-alpine3.13 RUN apk add --no-cache python3 g++ make WORKDIR /home/node/app COPY ["package.json", "yarn.lock", "./"] RUN yarn install --production # the following aren't needed, as they can be accomplished by volumes with docker-compose, instead of making a new image layer: #COPY ./src . #CMD ["node", "server.js"]