diff --git a/sample/Containerfile b/sample/Containerfile new file mode 100644 index 0000000..7117b56 --- /dev/null +++ b/sample/Containerfile @@ -0,0 +1,15 @@ +FROM quay.io/centos/centos:stream9 + +RUN dnf install -y samba samba-client cifs-utils shadow-utils \ + && dnf clean all +VOLUME /srv/samba +EXPOSE 445 + +RUN groupadd -g 1000 itix \ + && useradd -d /home/nicolas -g itix -u 1000 -m nicolas + +ADD entrypoint.sh / + +ENTRYPOINT [ "/entrypoint.sh" ] +CMD [ ] + diff --git a/sample/entrypoint.sh b/sample/entrypoint.sh new file mode 100755 index 0000000..e62a0df --- /dev/null +++ b/sample/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh +mkdir -p /var/lib/samba/lock /var/lib/samba/private /run/samba +exec /usr/sbin/smbd --foreground --no-process-group --log-stdout "$@"