From ee7bf2a53f92de1c22b69dbceccde537da556cd3 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Sat, 18 Jan 2025 00:16:40 +0000 Subject: [PATCH] Fix envoy-jwt-auth-helper (#137) While running through the envoy JWT tutorial I hit the following error in the envoy-jwt-auth-helper: /opt/helper/envoy-jwt-auth-helper: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /opt/helper/envoy-jwt-auth-helper) The auth helper image builds with golang:latest (currently based on debian bookworm), then copies to a debian buster. This change fixes the issue by syncing the build and production stage images. Fixes: #136 Signed-off-by: Mark Goddard --- k8s/envoy-jwt-auth-helper/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/envoy-jwt-auth-helper/Dockerfile b/k8s/envoy-jwt-auth-helper/Dockerfile index 3ce5813..336ff49 100644 --- a/k8s/envoy-jwt-auth-helper/Dockerfile +++ b/k8s/envoy-jwt-auth-helper/Dockerfile @@ -1,11 +1,11 @@ -FROM golang:latest as build-stage +FROM golang:bookworm as build-stage WORKDIR /app COPY . . RUN go mod download RUN go build -FROM debian:buster-slim as production-stage +FROM debian:bookworm-slim as production-stage RUN apt update && DEBIAN_FRONTEND=noninteractive apt full-upgrade -y && \ apt install -y dumb-init iputils-ping curl procps