FROM python:3.12 AS client 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 && \ bunzip2 /restic.bz2 && \ chmod +x /restic FROM restic/rest-server:0.13.0 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"]