forked from bbtsoftware/docker-mssql-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (29 loc) · 827 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
FROM mcr.microsoft.com/mssql-tools:latest
LABEL MAINTAINER="BBT Software AG <[email protected]>"
ENV DB_SERVER="mssql" \
DB_USER="SA" \
DB_PASSWORD="" \
DB_NAMES="" \
CRON_SCHEDULE="0 1 * * sun" \
BACKUP_CLEANUP=false \
BACKUP_AGE=7 \
SKIP_BACKUP_LOG=false \
PACK="" \
ZIP_PASSWORD="" \
PUSH_REMOTE_MODE="" \
SMTP_HOST="" \
SMTP_PORT="" \
SMTP_AUTH="on" \
SMTP_USER="" \
SMTP_PASS="" \
SMTP_FROM="" \
SMTP_TLS="on" \
MAIL_TO=""
RUN apt-get update && \
apt-get install -y cron zip msmtp msmtp-mta mailutils && \
rm -rf /var/cache/apk/*
COPY backup.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/backup.sh
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]