aboutsummaryrefslogtreecommitdiff
path: root/docker/auto-backup/Dockerfile
blob: 943c96f1a56fff7c9ab438e136a7ad3b2adc6328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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" ]

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