changed dockerfiles to be compatible with new protoc

This commit is contained in:
2026-06-20 13:18:57 -04:00
parent 687d190c14
commit 1964b8351f
4 changed files with 27 additions and 15 deletions

View File

@@ -2,12 +2,15 @@ FROM golang:1.24-alpine AS build
RUN apk add --no-cache git ca-certificates protobuf-dev
WORKDIR /app
ARG PROTOC_GEN_GO_VERSION=v1.36.10
ARG PROTOC_GEN_GO_GRPC_VERSION=v1.5.1
COPY go.mod go.sum ./
RUN go mod download
# install Go protoc plugins
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
# install Go protoc plugins (pinned for Go 1.24 compatibility)
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOC_GEN_GO_VERSION} && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION}
COPY api-gateway ./api-gateway
COPY services/auth-service ./services/auth-service
@@ -29,4 +32,4 @@ RUN apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=build /app/main /app/main
EXPOSE 8080
ENTRYPOINT ["/app/main"]
ENTRYPOINT ["/app/main"]