fixed entrypoint and using tumbleweed version instead of restic verson as tag

This commit is contained in:
Jonas Forsberg
2023-04-17 14:12:51 +02:00
parent a06e4e8f0a
commit f860eba8a2
3 changed files with 13 additions and 10 deletions

View File

@@ -1,10 +1,13 @@
FROM registry.opensuse.org/opensuse/tumbleweed:latest
ARG VERSION
FROM registry.opensuse.org/opensuse/tumbleweed:${VERSION}
RUN zypper --non-interactive install \
openssh-clients \
restic-${VERSION} \
restic \
&& zypper clean -a
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["start"]