docker build : install devDependencies so the build succeed (#1625)

This commit is contained in:
Vincent Fretin 2020-05-22 10:37:17 +02:00 committed by GitHub
parent 584e4182a7
commit fb897c75a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,12 @@
FROM node:14-alpine AS build
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
ENV NODE_ENV=production
RUN npm run build:app
FROM nginx:1.17-alpine