-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
59 lines (53 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM node:lts-alpine
LABEL \
org.label-schema.schema-version="1.0" \
org.label-schema.name="pull" \
org.label-schema.description="Keep your forks up-to-date via automated PRs" \
org.label-schema.url="https://github.com/wei/pull" \
org.label-schema.usage="https://github.com/wei/pull#readme" \
org.label-schema.vcs-url="https://github.com/wei/pull" \
maintainer="Wei He <[email protected]>"
ENV \
####################
### Required ###
####################
APP_ID= \
WEBHOOK_SECRET= \
PRIVATE_KEY= \
####################
### Optional ###
####################
#CLIENT_ID= \
#CLIENT_SECRET= \
#SENTRY_DSN= \
#SYSLOG_UDP_HOST= \
#SYSLOG_UDP_PORT= \
#GHE_HOST= \
#IGNORED_ACCOUNTS= \
NODE_ENV=production \
PORT=3000 \
LOG_FORMAT=short \
LOG_LEVEL=info \
WEBHOOK_PATH=/webhook \
PULL_INTERVAL=3600 \
MAX_CONCURRENT=10 \
CONFIG_FILENAME=pull.yml \
DISABLE_DELAY=false \
DISABLE_STATS=false \
_=
WORKDIR /app
COPY package*.json ./
RUN \
apk add --no-cache --virtual .build-dependencies build-base gcc wget git && \
apk add --no-cache python && \
npm ci --production && \
apk del .build-dependencies && \
:
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
ARG VCS_REF
ARG BUILD_DATE
LABEL \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.build-date=$BUILD_DATE