2021-04-08 09:12:32 +00:00
|
|
|
# Defines the tag for OBS and build script builds:
|
|
|
|
|
#!BuildTag: opensuse/samba:latest
|
|
|
|
|
#!BuildTag: opensuse/samba:%%MINOR%%
|
|
|
|
|
#!BuildTag: opensuse/samba:%%PKG_VERSION%%
|
|
|
|
|
#!BuildTag: opensuse/samba:%%PKG_VERSION%%-%RELEASE%
|
|
|
|
|
|
|
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
|
LABEL maintainer="Bruno Leon <bruno.leon@suse.com>"
|
|
|
|
|
|
|
|
|
|
# labelprefix=org.opensuse.samba
|
2024-02-16 15:46:44 +00:00
|
|
|
LABEL org.opencontainers.image.title="Samba container"
|
|
|
|
|
LABEL org.opencontainers.image.description="Samba container"
|
|
|
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
|
|
|
LABEL org.opencontainers.image.version="%%PKG_VERSION%%-%RELEASE%"
|
|
|
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
|
|
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
|
|
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/samba:%%PKG_VERSION%%-%RELEASE%"
|
|
|
|
|
# endlabelprefix
|
2021-04-08 09:12:32 +00:00
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
2024-02-16 15:46:44 +00:00
|
|
|
RUN zypper --non-interactive install --no-recommends catatonit timezone system-user-mail system-user-nobody shadow samba gawk && zypper clean && chmod 755 /entrypoint.sh
|
2021-04-08 09:12:32 +00:00
|
|
|
|
|
|
|
|
EXPOSE 137/udp 138/udp 139 445
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=60s --timeout=15s \
|
|
|
|
|
CMD smbclient -L \\localhost -U % -m SMB3
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]
|