Browse Source

separate npm install dev and production

pull/342/head
Guillaume Vincent 8 years ago
parent
commit
3ccd58f4c0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Dockerfile

+ 2
- 1
Dockerfile View File

@@ -4,7 +4,8 @@ RUN mkdir -p /frontend
WORKDIR /frontend WORKDIR /frontend


COPY package.json /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 COPY . /frontend
RUN npm run build RUN npm run build


Loading…
Cancel
Save