Merge pull request #5575 from tsiegleauq/packagelock-to-dockerfile

Add package lock to dockerfile
This commit is contained in:
Sean 2020-09-23 15:49:56 +02:00 committed by GitHub
commit adcf98a69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
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/

View File

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