First commit
This commit is contained in:
23
Dockerfile
Executable file
23
Dockerfile
Executable file
@ -0,0 +1,23 @@
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
# Install NSD and required tools
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends nsd tzdata && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p /var/lib/nsd /var/run/nsd /etc/nsd/conf.d
|
||||
|
||||
# Copy entrypoint script
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Volume for configuration and data
|
||||
VOLUME ["/etc/nsd", "/var/lib/nsd"]
|
||||
|
||||
# Expose standard NSD port
|
||||
EXPOSE 53/tcp 53/udp
|
||||
|
||||
# Set start command
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
Reference in New Issue
Block a user