Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
FROM mhart/alpine-node
FROM mhart/alpine-node:5.4
MAINTAINER Code Climate <[email protected]>

WORKDIR /usr/src/app
COPY package.json /usr/src/app/

RUN apk --update add git
RUN apk --update add git && \
npm install && \
apk del --purge git

RUN npm install
COPY . /usr/src/app

RUN adduser -u 9000 -D app
USER app

COPY . /usr/src/app
VOLUME /code
WORKDIR /code

CMD ["/usr/src/app/bin/eslint.js"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ image:
docker build --rm -t $(IMAGE_NAME) .

test: image
docker run $(IMAGE_NAME) npm run test
docker run --rm --workdir="/usr/src/app" $(IMAGE_NAME) npm run test