Only deploy production packages in Dockerfile

This commit is contained in:
Clement Michaud 2017-05-14 13:36:57 +02:00
parent 55c56e5da8
commit 88815ec90a

View File

@ -1,9 +1,9 @@
FROM node FROM node:7-alpine
WORKDIR /usr/src WORKDIR /usr/src
COPY package.json /usr/src/package.json COPY package.json /usr/src/package.json
RUN npm install RUN npm install --production
COPY src /usr/src COPY src /usr/src