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:
parent
9ef6529a56
commit
2619ea7fc3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue