Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |