forked from cla-assistant/cla-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (15 loc) · 615 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.5
MAINTAINER GoCD Contributors <[email protected]>
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++ && \
rm -rf /var/cache/apk/*
USER cla-assistant
CMD npm start