Include shrinkwrap when building (#3604)

* Include shrinkwrap when building

* include docker again
This commit is contained in:
Peter Hedenskog 2022-03-22 18:09:49 +01:00 committed by GitHub
parent 5974e2c262
commit a84d0dbd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -2,4 +2,6 @@
!bin
!lib
!package.json
!LICENSE
!npm-shrinkwrap.json
!docker

View File

@ -26,7 +26,8 @@ RUN wpr installroot --https_cert_file /webpagereplay/certs/wpr_cert.pem --https_
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.* /usr/src/app/
COPY package.json /usr/src/app/
COPY npm-shrinkwrap.json /usr/src/app/
RUN npm install --production && npm cache clean --force
COPY . /usr/src/app
@ -37,7 +38,6 @@ RUN mkdir -m 0750 /root/.android
ADD docker/adb/insecure_shared_adbkey /root/.android/adbkey
ADD docker/adb/insecure_shared_adbkey.pub /root/.android/adbkey.pub
# Allow all users to run commands needed by sitespeedio/throttle via sudo
# See https://github.com/sitespeedio/throttle/blob/main/lib/tc.js
RUN echo 'ALL ALL=NOPASSWD: /usr/sbin/tc, /usr/sbin/route, /usr/sbin/ip' > /etc/sudoers.d/tc