2023-04-12 14:47:01 +00:00
|
|
|
ARG VERSION
|
2023-04-18 11:29:16 +00:00
|
|
|
ARG BUILD_TIME
|
2023-04-17 12:12:51 +00:00
|
|
|
FROM registry.opensuse.org/opensuse/tumbleweed:${VERSION}
|
|
|
|
|
2023-04-18 11:29:16 +00:00
|
|
|
LABEL org.opencontainers.image.description=Image containing restic & openSSH, based on openSUSE Tumbleweed
|
|
|
|
LABEL org.opencontainers.image.source=https://git.rre.nu/jonas/restic/src/tag/${VERSION}
|
|
|
|
LABEL org.opencontainers.image.title=restic with openSSH based on openSUSE Tumpleweed
|
|
|
|
LABEL org.opencontainers.image.url=https://git.rre.nu/jonas/-/packages/container/restic/${VERSION}
|
|
|
|
LABEL org.opencontainers.image.created=${BUILD_TIME}
|
|
|
|
|
2023-04-12 14:47:01 +00:00
|
|
|
|
|
|
|
RUN zypper --non-interactive install \
|
|
|
|
openssh-clients \
|
2023-04-17 12:12:51 +00:00
|
|
|
restic \
|
2023-04-12 14:47:01 +00:00
|
|
|
&& zypper clean -a
|
2023-04-17 12:12:51 +00:00
|
|
|
|
2023-04-18 11:29:16 +00:00
|
|
|
|
2023-04-17 12:12:51 +00:00
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
2023-04-12 14:47:01 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
2023-04-17 12:12:51 +00:00
|
|
|
CMD ["start"]
|