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

Commit

Permalink
Merge pull request #164 from dblandin/devon/update-dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
nlf committed Jul 26, 2017
2 parents c20afb3 + d9ba63b commit 5ee23ec
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions Dockerfile
@@ -1,12 +1,20 @@
FROM alpine:edge
FROM node:7.10-alpine

WORKDIR /code
ADD . /app
WORKDIR /usr/src/app

COPY package.json ./

RUN apk --update add nodejs curl && \
npm install -g npm && \
cd /app && \
RUN apk --update add curl && \
npm install && \
npm run setup-offline

CMD ["/app/bin/nsp", "check", "--offline", "--warn-only", "-o", "codeclimate"]
RUN adduser -u 9000 -D app
COPY . ./
RUN chown -R app:app ./

USER app

VOLUME /code
WORKDIR /code

CMD ["/usr/src/app/bin/nsp", "check", "--offline", "--warn-only", "--output", "codeclimate"]

0 comments on commit 5ee23ec

Please sign in to comment.