FROM node:8 WORKDIR /usr/src/app/server COPY package*.json ./ RUN npm install RUN echo "NODE_ENV=production\n" > .env COPY . . CMD ["npm", "start"]