-
Notifications
You must be signed in to change notification settings - Fork 55
/
DockerfileBuild
17 lines (14 loc) · 982 Bytes
/
DockerfileBuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM golang:1.23.0
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 \
&& echo "deb https://deb.debian.org/debian bookworm main" > /etc/apt/sources.list \
&& echo "deb https://deb.debian.org/debian bookworm-updates main" >> /etc/apt/sources.list \
&& echo "deb https://deb.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list
RUN apt-get update -y \
&& apt-get install -y protobuf-compiler
RUN GOPROXY=https://goproxy.cn 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-http/v2@latest \
&& go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest \
&& go install github.com/google/wire/cmd/wire@latest \
&& go install github.com/aide-cloud/protoc-gen-go-errors@latest