-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (54 loc) · 1.36 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
60
FROM node:16-alpine
LABEL \
org.opencontainers.image.title="pull" \
org.opencontainers.image.description="Keep your forks up-to-date via automated PRs" \
org.opencontainers.image.url="https://github.com/wei/pull" \
org.opencontainers.image.documentation="https://github.com/wei/pull#readme" \
org.opencontainers.image.source="https://github.com/wei/pull" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.authors="Wei He <docker@weispot.com>" \
maintainer="Wei He <docker@weispot.com>"
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 \
JOB_TIMEOUT=60 \
MAX_CONCURRENT=10 \
MAX_IN_QUEUE=1000 \
CONFIG_FILENAME=pull.yml \
DEFAULT_MERGE_METHOD=hardreset \
DISABLE_DELAY= \
DISABLE_STATS= \
_=
WORKDIR /app
COPY package*.json ./
RUN \
npm ci --production && \
:
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
ARG VCS_REF
ARG BUILD_DATE
LABEL \
org.opencontainers.image.ref.name=$VCS_REF \
org.opencontainers.image.created=$BUILD_DATE