mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-10 00:30:29 +01:00
22 lines
530 B
Docker
22 lines
530 B
Docker
# Copyright 2021 - Offen Authors <hioffen@posteo.de>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
FROM alpine:3.14
|
|
|
|
WORKDIR /root
|
|
|
|
RUN apk add --update ca-certificates docker openrc gnupg
|
|
RUN update-ca-certificates
|
|
RUN rc-update add docker boot
|
|
|
|
ARG TARGETARCH=amd64
|
|
RUN wget https://dl.min.io/client/mc/release/linux-$TARGETARCH/mc && \
|
|
chmod +x mc && \
|
|
mv mc /usr/bin/mc
|
|
|
|
COPY src/backup.sh src/entrypoint.sh /root/
|
|
RUN chmod +x backup.sh && mv backup.sh /usr/bin/backup \
|
|
&& chmod +x entrypoint.sh
|
|
|
|
ENTRYPOINT ["/root/entrypoint.sh"]
|