FROM docker.io/fedora:25

MAINTAINER "James Antill" <james.antill@redhat.com>

RUN dnf install -y --setopt=tsflags=nodocs samba && \
    dnf install -y --setopt=tsflags=nodocs /usr/bin/pidof && \
    dnf install -y --setopt=tsflags=nodocs python-mako PyYAML && \
    dnf -y clean all

ADD files /files

# mkdir -p /srv/samba/Demo/
RUN mkdir -p /srv/samba
RUN /files/config.sh

RUN sh -c 'date > /srv/samba/tst-build'

EXPOSE 138/udp
EXPOSE 139
EXPOSE 445
EXPOSE 137/udp
EXPOSE 445/udp


# VOLUME ['/var/log', '/srv/samba']

# USER samba

CMD ["/files/start.sh"]
