FROM alpine:3.12 LABEL author="Serge NOEL " \ name="Samba AD DC - Alpine" \ description="Provides a Docker image for Samba 4 DC on Alpine Linux." # Install RUN apk add --no-cache samba-dc \ # Remove default config data, if any && rm -rf /etc/samba \ && rm -rf /var/lib/samba \ && rm -rf /var/log/samba # Ports EXPOSE 37/udp \ 53 \ 88 \ 123/udp \ 135/tcp \ 137/udp \ 138/udp \ 139 \ 389 \ 445 \ 464 \ 636/tcp \ 49152-65535/tcp \ 3268/tcp \ 3269/tcp # Volume config VOLUME ["/samba"] # Entrypoint COPY ./entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] CMD ["samba"]