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 <mark@cofide.io>
This commit is contained in:
Mark Goddard 2025-01-18 00:16:40 +00:00 committed by GitHub
parent d27c579eb4
commit ee7bf2a53f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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