Skip to content

Commit 960a0e5

Browse files
Security Fixes
Removing NPM from the image since it's not necessary and it becomes vulnerable very often. Updating node alpine image, so it will have newer yarn version (not vulnerable). List of Vulnerabilities getting fixed: - https://nvd.nist.gov/vuln/detail/CVE-2020-8131 - https://nvd.nist.gov/vuln/detail/CVE-2020-8116 - https://nvd.nist.gov/vuln/detail/CVE-2019-10773
1 parent 7dd81da commit 960a0e5

File tree

2 files changed

+81
-80
lines changed

2 files changed

+81
-80
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.13-alpine
1+
FROM node:12.16.1-alpine
22
# ref: https://hub.docker.com/_/node?tab=tags&name=12
33

44
LABEL maintainer="Jupyter Project <[email protected]>"
@@ -10,7 +10,8 @@ RUN mkdir -p /srv/configurable-http-proxy
1010
COPY . /srv/configurable-http-proxy
1111
WORKDIR /srv/configurable-http-proxy
1212
RUN npm install -g
13-
13+
RUN npm audit fix
14+
RUN npm uninstall -g npm
1415
# Switch from the root user to the nobody user
1516
USER 65534
1617

0 commit comments

Comments
 (0)