From 6606e46f6804a06b69f6ba43dcdaf83d3bc8c1e8 Mon Sep 17 00:00:00 2001 From: Sean Date: Wed, 23 Sep 2020 13:26:00 +0200 Subject: [PATCH] Add package lock to dockerfile Adds the package-lock file to the clients dockerfile, so npm-ci works --- client/docker/Dockerfile | 3 ++- client/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/docker/Dockerfile b/client/docker/Dockerfile index 63d03f730..80b70a693 100644 --- a/client/docker/Dockerfile +++ b/client/docker/Dockerfile @@ -11,10 +11,11 @@ RUN ng config -g cli.warnings.versionMismatch false USER openslides COPY package.json . +COPY package-lock.json . RUN npm ci COPY browserslist *.json ./ COPY src ./src -RUN npm run build +RUN npm run build-to-dir /build/app/static COPY docker/client-version.txt static/ diff --git a/client/package.json b/client/package.json index 4dc9cf48c..2013763c0 100644 --- a/client/package.json +++ b/client/package.json @@ -13,6 +13,7 @@ "start": "ng serve --proxy-config proxy.conf.json --host=0.0.0.0", "start-es5": "ng serve --proxy-config proxy.conf.json --host=0.0.0.0 --configuration es5", "build": "ng build --prod", + "build-to-dir": "npm run build -- --output-path", "postinstall": "ngcc", "build-debug": "ng build", "test": "ng test",