aboutsummaryrefslogtreecommitdiff
path: root/services/docker/auto-backup/Dockerfile
blob: f83736e17496d895c6c04e0c27e3f19f1051b1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM debian
RUN apt-get update && apt-get install -y \
    tini ca-certificates coreutils 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" ]