#4 Add pvc backup/restore Dockerfile

This commit is contained in:
Tomasz Sęk
2019-06-16 02:01:01 +02:00
parent bfbe13fa80
commit 66e9512c80
9 changed files with 259 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM alpine:3.9
RUN set -x && \
addgroup -S user -g 1000 && \
adduser -S user -G user && \
apk add --no-cache bash
WORKDIR /home/user/bin
COPY bin .
RUN chmod +x *.sh
USER user
CMD exec /bin/sh -c "trap : TERM INT; (while true; do sleep 1000; done) & wait"