Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan committed Apr 21, 2017
1 parent fd5e805 commit 28826dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
node_modules/
Dockerfile
18 changes: 18 additions & 0 deletions Dockerfile
@@ -0,0 +1,18 @@
FROM alpine:3.5
MAINTAINER GoCD Contributors <go-cd-dev@googlegroups.com>

EXPOSE 5000

COPY . /cla-assistant
WORKDIR /cla-assistant

RUN \
apk add --update nodejs su-exec git curl bzip2 patch make g++ && \
addgroup -S cla-assistant && \
adduser -S -D -G cla-assistant cla-assistant && \
chown -R cla-assistant:cla-assistant /cla-assistant && \
su-exec cla-assistant /bin/sh -c 'cd /cla-assistant && npm install && node_modules/grunt-cli/bin/grunt build && rm -rf /home/cla-assistant/.npm .git' && \
apk del git curl bzip2 patch make g++

USER cla-assistant
CMD npm start

0 comments on commit 28826dc

Please sign in to comment.