Split npm dependency fetching and building into two stages in Containerfile
This commit is contained in:
parent
a83cce236f
commit
39df975b04
1 changed files with 2 additions and 1 deletions
|
@ -4,8 +4,9 @@
|
||||||
# make it available in the public directory.
|
# make it available in the public directory.
|
||||||
FROM docker.io/node:alpine as client
|
FROM docker.io/node:alpine as client
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
ADD client-solid /build
|
ADD client-solid/package.json client-solid/package-lock.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
ADD client-solid .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Builds the server in an isolated stage
|
# Builds the server in an isolated stage
|
||||||
|
|
Loading…
Reference in a new issue