forked from jmqm/vaultwarden_backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (31 loc) · 889 Bytes
/
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
ARG ARCH=
FROM ${ARCH}alpine:latest
RUN addgroup -S app && adduser -S -G app app
RUN apk add --no-cache \
busybox-suid \
su-exec \
xz \
tzdata
ENV CRON_TIME "*/5 * * * *"
ENV UID 100
ENV GID 100
ENV DELETE_AFTER 0
ENV GOTIFY_TOKEN 12345
ENV GOTIFY_SERVER server.com
ENV SLACK_WEBHOOK slackwebhook
ENV DISCORD_WEBHOOK_ID discordwebhookid
ENV DISCORD_WEBHOOK_TOKEN discordwebhooktoken
# Install python/pip
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
# Install apprise for notificactions
RUN pip3 install apprise
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
COPY script.sh /app/
RUN mkdir /app/log/ \
&& chown -R app:app /app/ \
&& chmod -R 777 /app/ \
&& chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]