Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
- Update base image to 8.6-alpine
- Quiet npm install output
- Gather advisories after npm install
  • Loading branch information
dblandin committed Oct 10, 2017
1 parent beb8442 commit cd164f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
@@ -1,20 +1,20 @@
FROM node:7.10-alpine
FROM node:8.6-alpine

WORKDIR /usr/src/app

COPY package.json ./

RUN apk --update add curl && \
npm install -g npm && \
npm install && \
/usr/src/app/bin/nsp gather
RUN npm install --global --quiet npm && \
npm install --quiet

RUN adduser -u 9000 -D app
COPY . ./
RUN chown -R app:app ./

USER app

RUN ./bin/nsp gather

VOLUME /code
WORKDIR /code

Expand Down

0 comments on commit cd164f4

Please sign in to comment.