Files
frontier/images/Dockerfile.controlplane-api
T
Austin Zhai f420773b0e Feat/container multi os (#98)
* Add comprehensive in-process test framework

Add unit tests for exchange layer, E2E integration tests, security
tests (race + fuzz), and Go benchmark tests replacing the old
shell-script-based bench programs. All tests run in-process without
requiring an external frontier process. Suppress klog and armorigo
log noise in all test files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Update build configs, Dockerfiles and dependencies

Update Makefile with new targets, consolidate frontier_all.yaml config,
bump base image versions in Dockerfiles, and update go.mod/go.sum.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Revert etc/frontier_all.yaml to previous version

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 09:25:47 +08:00

23 lines
1.2 KiB
Docker

FROM golang:1.18-alpine
# Install curl and unzip, which are required to add protoc.
RUN apk add --no-cache curl unzip protoc protobuf-dev
ENV GO111MODULE=on \
GOPROXY=https://goproxy.cn,https://goproxy.io,https://proxy.golang.org,direct
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest \
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest \
&& go install github.com/go-kratos/kratos/cmd/kratos/v2@latest \
&& go install github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2@latest \
&& go install github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2@latest
WORKDIR /usr/src/protoc/
# Add the protos to the Docker image.
RUN curl --location https://github.com/googleapis/api-common-protos/archive/refs/tags/1.50.0.tar.gz > 1.50.0.tar.gz \
&& tar zxvf 1.50.0.tar.gz \
&& cp -R /usr/src/protoc/api-common-protos-1.50.0/ /protos/
WORKDIR /api/controlplane/v1
CMD protoc --proto_path=./ --proto_path=/protos/ --go_out=paths=source_relative:./ --go-http_out=paths=source_relative:./ --go-grpc_out=paths=source_relative:./ --go-errors_out=paths=source_relative:./ --experimental_allow_proto3_optional=true ./*.proto