Split npm dependency fetching and building into two stages in Containerfile

This commit is contained in:
Imbus 2024-03-08 06:34:53 +01:00
parent a83cce236f
commit 39df975b04

View file

@ -4,8 +4,9 @@
# make it available in the public directory.
FROM docker.io/node:alpine as client
WORKDIR /build
ADD client-solid /build
ADD client-solid/package.json client-solid/package-lock.json ./
RUN npm install
ADD client-solid .
RUN npm run build
# Builds the server in an isolated stage