From fb2dfe2ff3ea42b63375a06a63d379318cc7ab3b Mon Sep 17 00:00:00 2001 From: Daniel Grau Date: Thu, 24 Oct 2024 10:10:45 -0700 Subject: [PATCH] Update lemming base image (#487) --- Dockerfile.lemming | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile.lemming b/Dockerfile.lemming index 0d415165..1cf580e8 100644 --- a/Dockerfile.lemming +++ b/Dockerfile.lemming @@ -1,10 +1,11 @@ -FROM docker.io/golang:1.21-bullseye AS build +FROM docker.io/golang:1.22-bookworm AS build WORKDIR /build COPY go.* ./ RUN go mod download COPY . . FROM build as release-build +RUN apt-get update && apt-get install -y libpcap-dev RUN go install github.com/google/go-licenses@latest RUN --mount=type=cache,target=/root/.cache/go-build go build -o /out/lemming ./cmd/lemming RUN go-licenses save ./cmd/lemming --save_path THIRD_PARTY_LICENSES @@ -13,10 +14,12 @@ FROM build as debug-build RUN go install github.com/go-delve/delve/cmd/dlv@latest RUN --mount=type=cache,target=/root/.cache/go-build go build -gcflags='all=-N -l' -o /out/lemming ./cmd/lemming -FROM docker.io/debian:bullseye as debug +FROM docker.io/debian:bookworm as debug +RUN apt-get update && apt-get install -y libpcap-dev COPY --from=debug-build /out/lemming /lemming/lemming COPY --from=debug-build /go/bin/dlv /dlv/dlv -FROM docker.io/debian:bullseye as release +FROM docker.io/debian:bookworm as release +RUN apt-get update && apt-get install -y libpcap-dev COPY --from=release-build /out/lemming /lemming/lemming COPY --from=release-build /build/THIRD_PARTY_LICENSES /lemming/THIRD_PARTY \ No newline at end of file