-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (47 loc) · 1.51 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
61
FROM vaultwarden/server:latest-alpine
WORKDIR /
ARG SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 \
OVERMIND_URL=https://github.com/DarthSim/overmind/releases/download/v2.4.0/overmind-v2.4.0-linux-amd64.gz
ENV TZ="Asia/Shanghai" \
DOMAIN_NAME= \
OVERMIND_CAN_DIE=crontab \
OVERMIND_PROCFILE=/Procfile \
ROCKET_PORT=8080 \
SMTP_HOST=smtp.gmail.com \
SMTP_PORT=587 \
SMTP_USERNAME=88888888@gmail.com \
SMTP_PASSWORD=88888888 \
SMTP_FROM=88888888@gmail.com \
SMTP_TO= \
RESTIC_REPOSITORY=s3://88888888.r2.cloudflarestorage.com/vaultwarden \
RESTIC_PASSWORD= \
AWS_ACCESS_KEY_ID= \
AWS_SECRET_ACCESS_KEY=
COPY config/crontab \
config/Procfile \
config/Caddyfile \
scripts/restic.sh \
/
RUN apk add --no-cache \
curl \
caddy \
restic \
ca-certificates \
openssl \
tzdata \
iptables \
ip6tables \
iputils-ping \
tmux \
sqlite \
msmtp \
mailx \
&& rm -rf /var/cache/apk/* \
&& curl -fsSL "$SUPERCRONIC_URL" -o /usr/local/bin/supercronic \
&& curl -fsSL "$OVERMIND_URL" | gunzip -c - > /usr/local/bin/overmind \
&& ln -sf /usr/bin/msmtp /usr/bin/sendmail \
&& ln -sf /usr/bin/msmtp /usr/sbin/sendmail \
&& chmod +x /usr/local/bin/supercronic \
&& chmod +x /usr/local/bin/overmind \
&& chmod +x /restic.sh
CMD ["overmind", "start"]