Skip to content

Commit d1dd1d7

Browse files
Merge pull request #1947 from renuka-fernando/update-envoy
refactor(gateway-runtime): use ARG for envoy base image version
2 parents 7e8a7eb + 4d25ed2 commit d1dd1d7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

gateway/gateway-runtime/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
# Gateway Runtime Dockerfile
2020
# Combines Envoy Router and Policy Engine into a single container
2121

22+
# Envoy base image version — referenced by all stages that derive from envoyproxy/envoy.
23+
# Update here to bump Envoy across python-deps, debug, and production stages.
24+
ARG ENVOY_VERSION=v1.38.0
25+
2226
# Stage 1: Builder Base
2327
FROM --platform=$BUILDPLATFORM golang:1.26.2-bookworm AS builder-base
2428
ARG BUILDARCH
@@ -132,7 +136,7 @@ COPY --from=policy-compiler /api-platform/output/gateway-controller/policies /
132136
# Uses the same base image as the production stage so that C extensions
133137
# (e.g. grpcio) are compiled against the identical Python version and glibc.
134138
# pip, venv, and git are installed here only — they are NOT copied to production.
135-
FROM envoyproxy/envoy:v1.37.1 AS python-deps
139+
FROM envoyproxy/envoy:${ENVOY_VERSION} AS python-deps
136140

137141
ARG PYTHON_SDK_SOURCE=pypi
138142

@@ -180,7 +184,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
180184
go install github.com/go-delve/delve/cmd/dlv@v1.26.0
181185

182186
# Stage 3c: Debug Runtime (policy-engine wrapped in dlv, port 2346)
183-
FROM envoyproxy/envoy:v1.37.1 AS debug
187+
FROM envoyproxy/envoy:${ENVOY_VERSION} AS debug
184188

185189
USER root
186190
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
@@ -218,7 +222,7 @@ EXPOSE 2346 8080 8443 9901 9002 9003
218222
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/docker-entrypoint.sh"]
219223

220224
# Stage 4: Runtime (production — must remain last so default builds are unaffected)
221-
FROM envoyproxy/envoy:v1.37.1 AS production
225+
FROM envoyproxy/envoy:${ENVOY_VERSION} AS production
222226

223227
ARG VERSION=unknown
224228
ARG ENABLE_COVERAGE=false

0 commit comments

Comments
 (0)