From 18ce328d3d66f641a6e37e87a270ee8338a11b10 Mon Sep 17 00:00:00 2001 From: Christian Heldt Date: Sat, 22 Nov 2025 20:06:46 +0100 Subject: [PATCH] Bump base image version to debian:trixie --- Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dea5495..8348279 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:buster as builder +FROM debian:trixie as builder RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ apt-get install -q -y golang git-core && \ apt-get clean @@ -6,9 +6,16 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ ENV GOPATH=/root/go RUN mkdir -p /root/go/src COPY rest-api /root/go/src/dyndns -RUN cd /root/go/src/dyndns && go get && go test -v -FROM debian:buster-slim +WORKDIR /root/go/src/dyndns + +RUN go mod init dyndns && \ + go get -d -v && \ + go test -v + +RUN go build -o /root/go/bin/dyndns . + +FROM debian:trixie-slim MAINTAINER David Prandzioch RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ @@ -22,4 +29,4 @@ COPY named.conf.options /etc/bind/named.conf.options COPY --from=builder /root/go/bin/dyndns /root/dyndns EXPOSE 53 8080 -CMD ["sh", "-c", "/root/setup.sh ; service bind9 start ; /root/dyndns"] +CMD ["sh", "-c", "/root/setup.sh ; service named start ; /root/dyndns"]