diff --git a/.travis.yml b/.travis.yml index 8072d3b3..0a0f6e0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ install: - npm install -g codecov - npm install script: + - npm audit # if npm audit fails, run `npm audit fix` and commit the results - npm run lint - travis_retry npm test after_success: diff --git a/Dockerfile b/Dockerfile index 9b00ad9f..e0325698 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12.16.1-alpine +FROM node:12-alpine # ref: https://hub.docker.com/_/node?tab=tags&name=12 LABEL maintainer="Jupyter Project " @@ -10,11 +10,8 @@ RUN mkdir -p /srv/configurable-http-proxy COPY . /srv/configurable-http-proxy WORKDIR /srv/configurable-http-proxy -# Install configurable-http-proxy, then automatically install compatible updates -# to vulnerable dependencies, and finally uninstall npm which isn't needed. -RUN npm install -g --production \ - && npm audit fix \ - && npm uninstall -g npm +# Install configurable-http-proxy +RUN npm install -g --production # Switch from the root user to the nobody user USER 65534