22 lines
763 B
Docker
22 lines
763 B
Docker
ARG VERSION
|
|
ARG BUILD_TIME
|
|
FROM registry.opensuse.org/opensuse/tumbleweed:${VERSION}
|
|
|
|
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}
|
|
|
|
|
|
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"]
|