Check if latest npm fixes the Docker checkurity fixes (#3499)

* Check if latest npm fixes the Docker checkurity fixes

* Remove npm when we are done
This commit is contained in:
Peter Hedenskog 2021-10-29 15:29:05 +02:00 committed by GitHub
parent 9ef6529a56
commit 2619ea7fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.* /usr/src/app/
RUN npm install --production && npm cache clean --force
RUN npm install --production && npm cache clean --force && npm uninstall npm -g
COPY . /usr/src/app
COPY docker/scripts/start.sh /start.sh
@ -35,6 +35,7 @@ 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