FROM alpine:3.13.0 ARG VERSION ARG TARGETARCH ENV VERSION $VERSION ADD https://github.com/restic/restic/releases/download/v${VERSION}/restic_${VERSION}_linux_${TARGETARCH}.bz2 /root/restic.bz2 RUN bunzip2 /root/restic.bz2 && chmod +x /root/restic && mv /root/restic /usr/bin/restic ENTRYPOINT ["/usr/bin/restic"]