Dockerfile 221 B

123456789101112131415
  1. FROM node:8-slim
  2. WORKDIR /starter
  3. ENV NODE_ENV production
  4. COPY package.json /starter/package.json
  5. RUN npm install --production
  6. COPY .env.example /starter/.env.example
  7. COPY . /starter
  8. CMD ["npm","start"]
  9. EXPOSE 8080