2 changed files with 18 additions and 0 deletions
@ -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 [ ] |
|||
|
|||
@ -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 "$@" |
|||
Loading…
Reference in new issue