Files
samba-image/Dockerfile
Thorsten Kukuk 98fd9ecd51 - Update to version 1708098290.fc82229:
* Add gawk to samba image (#11)
  * Use the new label expansion syntax
  * Remove debug comment

OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/samba-image?expand=0&rev=6
2024-02-16 15:46:44 +00:00

30 lines
1.1 KiB
Docker

# 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
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
COPY entrypoint.sh /entrypoint.sh
RUN zypper --non-interactive install --no-recommends catatonit timezone system-user-mail system-user-nobody shadow samba gawk && zypper clean && chmod 755 /entrypoint.sh
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"]