First commit

This commit is contained in:
2025-05-16 00:19:15 +02:00
commit 45cffd4b9e
5 changed files with 83 additions and 0 deletions

23
Dockerfile Executable file
View 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"]