FROM python:3.12 AS client RUN curl -fLo /restic.bz2 https://github.com/restic/restic/releases/download/v0.16.4/restic_0.16.4_linux_amd64.bz2 && \ printf "3d4d43c169a9e28ea76303b1e8b810f0dcede7478555fdaa8959971ad499e324 /restic.bz2\\n" | sha256sum -c && \ bunzip2 /restic.bz2 && \ chmod +x /restic FROM restic/rest-server:0.12.1 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"]