From 3ccd58f4c0183a88170577d7f0bf5d87e2430563 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Mon, 6 Jun 2016 08:37:45 +0200 Subject: [PATCH] separate npm install dev and production --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 03b5ee2..08db0f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ RUN mkdir -p /frontend WORKDIR /frontend COPY package.json /frontend/ -RUN npm install +RUN npm install --production --ignore-scripts --unsafe-perm +RUN npm install --only=dev --ignore-scripts --unsafe-perm COPY . /frontend RUN npm run build