aboutsummaryrefslogtreecommitdiff
path: root/docker/auto-backup
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-23 20:48:00 +0800
committercrupest <crupest@outlook.com>2022-11-23 20:48:00 +0800
commitf5dde466545be9aa6c64e1dac574ce72e4a74dfa (patch)
tree74941571b8de309495cb5a7a08ea383570e2d409 /docker/auto-backup
parentea89f67879ac335d98b3bf31c06cb78c53b581a0 (diff)
downloadcrupest-f5dde466545be9aa6c64e1dac574ce72e4a74dfa.tar.gz
crupest-f5dde466545be9aa6c64e1dac574ce72e4a74dfa.tar.bz2
crupest-f5dde466545be9aa6c64e1dac574ce72e4a74dfa.zip
Fix coscli. v1.0
Diffstat (limited to 'docker/auto-backup')
-rw-r--r--docker/auto-backup/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/auto-backup/Dockerfile b/docker/auto-backup/Dockerfile
index 7bf4b2d..51cbfa9 100644
--- a/docker/auto-backup/Dockerfile
+++ b/docker/auto-backup/Dockerfile
@@ -1,5 +1,5 @@
FROM alpine:latest
-RUN apk add --no-cache coreutils bash tar xz python3
+RUN apk add --no-cache build-base coreutils bash tar xz python3
ARG CRUPEST_AUTO_BACKUP_INIT_DELAY=0
ARG CRUPEST_AUTO_BACKUP_INTERVAL=1d
ARG CRUPEST_AUTO_BACKUP_COS_SECRET_ID
@@ -17,7 +17,8 @@ RUN python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
pip3 install coscmd && \
- rm -r /root/.cache
+ rm -r /root/.cache && \
+ coscmd --version
COPY daemon.bash /daemon.bash
VOLUME [ "/data" ]
STOPSIGNAL SIGINT