restic-compose-backup/src/Dockerfile

42 lines
809 B
Text
Raw Normal View History

2020-11-16 11:33:00 +01:00
FROM alpine AS builder
2019-04-13 19:04:54 +02:00
2020-11-16 11:33:00 +01:00
RUN mkdir -p /opt
ARG IMAGE_ARCH=amd64
ARG RCON_CLI_VERSION=1.4.4
ADD https://github.com/itzg/rcon-cli/releases/download/${RCON_CLI_VERSION}/rcon-cli_${RCON_CLI_VERSION}_linux_${IMAGE_ARCH}.tar.gz /tmp/rcon-cli.tar.gz
RUN tar x -f /tmp/rcon-cli.tar.gz -C /opt/ && \
chmod +x /opt/rcon-cli
2020-11-16 12:05:39 +01:00
FROM restic/restic
2020-11-16 11:33:00 +01:00
RUN apk -U --no-cache add \
bash \
coreutils \
openssh-client \
2020-11-16 12:05:39 +01:00
python3 py3-pip \
2020-11-16 11:33:00 +01:00
dcron \
mariadb-client \
postgresql-client
COPY --from=builder /opt/rcon-cli /opt/rcon-cli
RUN ln -s /opt/rcon-cli /usr/bin
# install rcb python app
2019-04-13 19:04:54 +02:00
2019-12-03 09:40:02 +01:00
ADD . /restic-compose-backup
WORKDIR /restic-compose-backup
2020-11-16 11:33:00 +01:00
2020-05-15 23:37:39 +02:00
RUN pip3 install -U pip setuptools wheel && pip3 install -e .
ENV XDG_CACHE_HOME=/cache
2019-04-13 19:04:54 +02:00
2020-11-16 11:33:00 +01:00
# end install
2019-04-13 19:04:54 +02:00
ENTRYPOINT []
2020-11-16 12:05:39 +01:00
CMD ["./entrypoint.sh"]