Ajout projet webAduc
This commit is contained in:
42
Docker/Samba-Ad-DC/Dockerfile
Normal file
42
Docker/Samba-Ad-DC/Dockerfile
Normal file
@@ -0,0 +1,42 @@
|
||||
FROM alpine:3.12
|
||||
LABEL author="Serge NOEL <serge.noel@easylinux.fr>" \
|
||||
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 \
|
||||
# Create needed symbolic links
|
||||
&& ln -s /samba/etc /etc/samba \
|
||||
&& ln -s /samba/lib /var/lib/samba \
|
||||
&& ln -s /samba/log /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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user