Browse Source

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

pull/1630/head
Vincent Fretin 6 years ago committed by GitHub
parent
commit
fb897c75a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Dockerfile

2
Dockerfile

@ -1,12 +1,12 @@ @@ -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

Loading…
Cancel
Save