23 lines
549 B
Docker
Executable File
23 lines
549 B
Docker
Executable File
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"] |