docker build : install devDependencies so the build succeed (#1625)
This commit is contained in:
parent
584e4182a7
commit
fb897c75a7
@ -1,12 +1,12 @@
|
|||||||
FROM node:14-alpine AS build
|
FROM node:14-alpine AS build
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ENV NODE_ENV=production
|
||||||
RUN npm run build:app
|
RUN npm run build:app
|
||||||
|
|
||||||
FROM nginx:1.17-alpine
|
FROM nginx:1.17-alpine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user