File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- FROM debian:buster as builder
1+ FROM debian:trixie as builder
22RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 apt-get install -q -y golang git-core && \
44 apt-get clean
55
66ENV GOPATH=/root/go
77RUN mkdir -p /root/go/src
88COPY 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
1219MAINTAINER David Prandzioch <hello+ddns@davd.eu>
1320
1421RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
@@ -22,4 +29,4 @@ COPY named.conf.options /etc/bind/named.conf.options
2229COPY --from=builder /root/go/bin/dyndns /root/dyndns
2330
2431EXPOSE 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" ]
You can’t perform that action at this time.
0 commit comments