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",