Skip to content

Commit bff6931

Browse files
nicklaslclaude
andcommitted
fix: pin protoc to 29.4-r0 for deterministic builds
Pin protoc and protobuf-dev to version 29.4-r0 in all Alpine stages to ensure consistent proto code generation across different build environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 47d3fa7 commit bff6931

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
1313
# - protoc/protobuf-dev: Required for prost-build (proto compilation in build.rs)
1414
# - musl-dev: Required for linking Rust binaries on Alpine
1515
RUN apk add --no-cache \
16-
protobuf-dev \
17-
protoc \
16+
protobuf-dev=29.4-r0 \
17+
protoc=29.4-r0 \
1818
musl-dev \
1919
make \
2020
gcc \
@@ -211,7 +211,7 @@ RUN make lint
211211
FROM node:20-alpine AS node-host-base
212212

213213
# Install protoc for proto generation
214-
RUN apk add --no-cache protobuf-dev protoc make
214+
RUN apk add --no-cache protobuf-dev=29.4-r0 protoc=29.4-r0 make
215215

216216
WORKDIR /app
217217

@@ -251,7 +251,7 @@ RUN make run
251251
FROM eclipse-temurin:21-alpine AS java-host-base
252252

253253
# Install Maven and protobuf
254-
RUN apk add --no-cache maven protobuf-dev protoc make
254+
RUN apk add --no-cache maven protobuf-dev=29.4-r0 protoc=29.4-r0 make
255255

256256
WORKDIR /app
257257

@@ -290,7 +290,7 @@ RUN make run
290290
FROM golang:1.23-alpine AS go-host-base
291291

292292
# Install protobuf and protoc-gen-go
293-
RUN apk add --no-cache protobuf-dev protoc bash make git
293+
RUN apk add --no-cache protobuf-dev=29.4-r0 protoc=29.4-r0 bash make git
294294

295295
WORKDIR /app
296296

@@ -370,7 +370,7 @@ RUN make run
370370
FROM node:20-alpine AS openfeature-provider-js-base
371371

372372
# Install protoc for proto generation
373-
RUN apk add --no-cache protobuf-dev protoc make
373+
RUN apk add --no-cache protobuf-dev=29.4-r0 protoc=29.4-r0 make
374374

375375
WORKDIR /app
376376

0 commit comments

Comments
 (0)