All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 28s
Updated baseimage to Debian Bookworm ans added labels.
30 lines
971 B
Docker
Executable File
30 lines
971 B
Docker
Executable File
FROM debian:bookworm-slim
|
|
|
|
LABEL org.opencontainers.image.title="NSD Docker"
|
|
LABEL org.opencontainers.image.description="NSD (Name Server Daemon) in a Docker container"
|
|
LABEL org.opencontainers.image.source="https://git.debilux.org/chris/docker-nsd"
|
|
LABEL org.opencontainers.image.url="https://git.debilux.org/chris/docker-nsd"
|
|
LABEL org.opencontainers.image.licenses="MIT"
|
|
LABEL org.opencontainers.image.authors="Christian Busch <hello@chbus.ch>"
|
|
|
|
# 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"] |