Skip to content

Commit 18ce328

Browse files
committed
Bump base image version to debian:trixie
1 parent 5c39bf8 commit 18ce328

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
FROM debian:buster as builder
1+
FROM debian:trixie as builder
22
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33
apt-get install -q -y golang git-core && \
44
apt-get clean
55

66
ENV GOPATH=/root/go
77
RUN mkdir -p /root/go/src
88
COPY rest-api /root/go/src/dyndns
9-
RUN cd /root/go/src/dyndns && go get && go test -v
109

11-
FROM debian:buster-slim
10+
WORKDIR /root/go/src/dyndns
11+
12+
RUN go mod init dyndns && \
13+
go get -d -v && \
14+
go test -v
15+
16+
RUN go build -o /root/go/bin/dyndns .
17+
18+
FROM debian:trixie-slim
1219
MAINTAINER David Prandzioch <hello+ddns@davd.eu>
1320

1421
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
@@ -22,4 +29,4 @@ COPY named.conf.options /etc/bind/named.conf.options
2229
COPY --from=builder /root/go/bin/dyndns /root/dyndns
2330

2431
EXPOSE 53 8080
25-
CMD ["sh", "-c", "/root/setup.sh ; service bind9 start ; /root/dyndns"]
32+
CMD ["sh", "-c", "/root/setup.sh ; service named start ; /root/dyndns"]

0 commit comments

Comments
 (0)