diff --git a/Dockerfile b/Dockerfile index 4e77ceb..c69c496 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # The docker image to generate Golang code from Protol Buffer. -FROM golang:1.17.0-alpine3.14 as builder +FROM golang:1.18.10-alpine3.17 as builder LABEL intermediate=true MAINTAINER DL NGP-App-Infra-API @@ -60,8 +60,7 @@ RUN go install github.com/gogo/protobuf/protoc-gen-gogoslick RUN go install github.com/gogo/protobuf/protoc-gen-gogotypes RUN go install github.com/gogo/protobuf/protoc-gen-gostring ENV GO111MODULE=on -RUN go get github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@switch_jsonschema_library -RUN go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@switch_jsonschema_library +RUN go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@1.1.0 ENV GO111MODULE=off RUN go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway RUN go install github.com/envoyproxy/protoc-gen-validate @@ -93,10 +92,10 @@ RUN go get github.com/go-openapi/spec && \ cd grpc-gateway/protoc-gen-swagger && go build -o /out/usr/bin/protoc-gen-swagger main.go ENV GO111MODULE=on + # Build with infoblox atlas_patch. RUN cd ${GOPATH}/src/github.com/infobloxopen && git clone --single-branch -b v1.0.1 https://github.com/infobloxopen/atlas-openapiv2-patch.git && \ cd ${GOPATH}/src/github.com/infobloxopen/atlas-openapiv2-patch && go mod vendor && go build -o /out/usr/bin/atlas_patch ./cmd/server/. -ENV GO111MODULE=on RUN mkdir -p /out/protos && \ find ${GOPATH}/src -name "*.proto" -exec cp --parents {} /out/protos \;