2021-04-02 13:59:47 +02:00
|
|
|
# Copyright 2021 - Offen Authors <hioffen@posteo.de>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2021-06-28 20:25:21 +02:00
|
|
|
FROM alpine:3.14
|
2021-04-02 13:59:47 +02:00
|
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
RUN apk add --update ca-certificates docker openrc gnupg
|
2021-07-01 08:18:04 +02:00
|
|
|
RUN update-ca-certificates
|
2021-04-02 13:59:47 +02:00
|
|
|
RUN rc-update add docker boot
|
|
|
|
|
2021-07-01 08:18:04 +02:00
|
|
|
ARG TARGETARCH=amd64
|
|
|
|
RUN wget https://dl.min.io/client/mc/release/linux-$TARGETARCH/mc && \
|
2021-04-02 13:59:47 +02:00
|
|
|
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"]
|