aboutsummaryrefslogtreecommitdiff
path: root/services/docker/auto-backup/Dockerfile
blob: e376174863c876b26278a25ebbd125b5e10b5619 (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 daemon.bash /app/

VOLUME [ "/data" ]

CMD [ "tini", "--", "/app/daemon.bash" ]