dockerfiles/restic-server

19 lines
577 B
Plaintext
Raw Normal View History

2024-05-29 01:30:15 +00:00
FROM python:3.12 AS client
2024-07-31 14:30:29 +00:00
RUN curl -fLo /restic.bz2 https://github.com/restic/restic/releases/download/v0.17.0/restic_0.17.0_linux_amd64.bz2 && \
printf "fec7ade9f12c30bd6323568dbb0f81a3f98a3c86acc8161590235c0f18194022 /restic.bz2\\n" | sha256sum -c && \
2024-05-29 01:30:15 +00:00
bunzip2 /restic.bz2 && \
chmod +x /restic
2024-07-31 14:32:30 +00:00
FROM restic/rest-server:0.13.0
2024-05-29 01:30:15 +00:00
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-muslc-amd64 /tini
RUN chmod +x /tini
COPY --from=client /restic /usr/local/bin
ENTRYPOINT ["/tini", "--"]
CMD ["/entrypoint.sh"]