aboutsummaryrefslogtreecommitdiff
path: root/services/docker/auto-backup/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'services/docker/auto-backup/Dockerfile')
-rw-r--r--services/docker/auto-backup/Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/services/docker/auto-backup/Dockerfile b/services/docker/auto-backup/Dockerfile
new file mode 100644
index 0000000..6736077
--- /dev/null
+++ b/services/docker/auto-backup/Dockerfile
@@ -0,0 +1,14 @@
+FROM debian
+RUN apt-get update && apt-get install -y \
+ tini ca-certificates coreutils bash tar zstd \
+ && rm -rf /var/lib/apt/lists/*
+
+ENV CRUPEST_AUTO_BACKUP_INIT_DELAY=
+ENV CRUPEST_AUTO_BACKUP_INTERVAL=1d
+
+ADD --chmod=755 https://github.com/tencentyun/coscli/releases/download/v1.0.3/coscli-v1.0.3-linux-amd64 /app/coscli
+ADD --chmod=755 daemon.bash /app/
+
+VOLUME [ "/data" ]
+
+CMD [ "tini", "--", "/app/daemon.bash" ]