ARG VERSION
FROM registry.opensuse.org/opensuse/tumbleweed:${VERSION}


RUN zypper --non-interactive install \
  openssh-clients \
  restic \
  && zypper clean -a

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["start"]