Add package lock to dockerfile

Adds the package-lock file to the clients dockerfile, so npm-ci works
This commit is contained in:
Sean 2020-09-23 13:26:00 +02:00
parent e1d4a4152a
commit 6606e46f68
2 changed files with 3 additions and 1 deletions

View File

@ -11,10 +11,11 @@ RUN ng config -g cli.warnings.versionMismatch false
USER openslides USER openslides
COPY package.json . COPY package.json .
COPY package-lock.json .
RUN npm ci RUN npm ci
COPY browserslist *.json ./ COPY browserslist *.json ./
COPY src ./src COPY src ./src
RUN npm run build RUN npm run build-to-dir /build/app/static
COPY docker/client-version.txt static/ COPY docker/client-version.txt static/

View File

@ -13,6 +13,7 @@
"start": "ng serve --proxy-config proxy.conf.json --host=0.0.0.0", "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", "start-es5": "ng serve --proxy-config proxy.conf.json --host=0.0.0.0 --configuration es5",
"build": "ng build --prod", "build": "ng build --prod",
"build-to-dir": "npm run build -- --output-path",
"postinstall": "ngcc", "postinstall": "ngcc",
"build-debug": "ng build", "build-debug": "ng build",
"test": "ng test", "test": "ng test",