File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 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
-
13
1
FROM public.ecr.aws/docker/library/golang:1.20-bullseye as build-exporter
14
2
15
3
RUN go install github.com/hanazuki/unbound_exporter@679dfa54debd24456ed458a7e72590101b560e2b
16
4
17
5
# ##
18
6
19
- FROM public.ecr.aws/ubuntu/ubuntu:jammy
7
+ FROM public.ecr.aws/docker/library/debian:bookworm
20
8
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 && \
24
11
rm -rf /var/lib/apt/lists/*
25
12
26
13
COPY --from=build-exporter /go/bin/unbound_exporter /usr/local/bin/
You can’t perform that action at this time.
0 commit comments