FROM node:8.9-alpine # Set the application directory WORKDIR /app RUN npm install -g nodemon RUN npm config set registry https://registry.npmjs.org COPY votingusecase/result/package.json /app/package.json RUN npm install \ && npm ls \ && npm cache clean --force \ && mv /app/node_modules /node_modules # Copy code from the current folder to /app inside the container COPY votingusecase/result/server.js /app/server.js # Make port 80 available EXPOSE 80 # Define command to be run when launching the container CMD ["node", "app:server.js"]