-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 699 Bytes
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
FROM alpine:3.22
RUN apk add --no-cache \
postgresql15 \
rclone \
redis \
bash \
tzdata \
coreutils \
busybox-suid \
curl \
su-exec \
dcron \
gzip \
&& mkdir -p /scripts
COPY backup_full.sh /scripts/backup_full.sh
COPY backup_incremental.sh /scripts/backup_incremental.sh
COPY backup_incremental_base.sh /scripts/backup_incremental_base.sh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /scripts/*.sh /entrypoint.sh
HEALTHCHECK --interval=1m --timeout=10s --start-period=1m --retries=3 CMD ps | grep -q '[c]rond' && [ -d /backups ] && [ -w /backups ]
ENTRYPOINT ["/entrypoint.sh"]