Skip to content

Commit 1705b2e

Browse files
committed
docker/unbound: Use bookworm image (with unbound 1.17.1)
1 parent bc4a5a9 commit 1705b2e

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

unbound/Dockerfile

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
1-
FROM public.ecr.aws/ubuntu/ubuntu:jammy as build-unbound
2-
3-
RUN apt-get update -qq && \
4-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git git-buildpackage
5-
6-
WORKDIR /build/unbound
7-
RUN git clone --no-single-branch -b debian/1.17.1-2 --filter=tree:0 https://salsa.debian.org/dns-team/unbound.git .
8-
RUN apt-get build-dep -y .
9-
RUN gbp buildpackage -b -uc -us -j"$(nproc)" --git-ignore-branch --git-no-pristine-tar
10-
11-
###
12-
131
FROM public.ecr.aws/docker/library/golang:1.20-bullseye as build-exporter
142

153
RUN go install github.com/hanazuki/unbound_exporter@679dfa54debd24456ed458a7e72590101b560e2b
164

175
###
186

19-
FROM public.ecr.aws/ubuntu/ubuntu:jammy
7+
FROM public.ecr.aws/docker/library/debian:bookworm
208

21-
RUN --mount=type=bind,from=build-unbound,src=/build,dst=/build \
22-
apt-get update -qq && \
23-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends /build/unbound_*.deb dns-root-data dumb-init && \
9+
RUN apt-get update -qq && \
10+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends unbound dns-root-data dumb-init && \
2411
rm -rf /var/lib/apt/lists/*
2512

2613
COPY --from=build-exporter /go/bin/unbound_exporter /usr/local/bin/

0 commit comments

Comments
 (0)