mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
* tx history * fix * fix * pr review refactor * pr review refactor * fix * pr review refactor * exclude gosec G115 Integer Overflow Conversion * ignore some gosec errs * ignore some gosec errs * ignore createdat in test assertion * Fixes (#7) * Fixes * Fixes * Update golang (#8) * update gha golangci-lint version * update gha golangci-lint version * fix linting issues * fix linting issues * fix linting issues * add linter timeout --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
18 lines
762 B
Docker
18 lines
762 B
Docker
FROM golang:1.23.1-alpine3.20 as builder
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
RUN go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
|
|
RUN go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest
|
|
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26.0
|
|
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0
|
|
|
|
FROM bufbuild/buf
|
|
|
|
COPY --from=builder /go/bin/protoc-gen-openapiv2 /usr/local/bin/protoc-gen-openapiv2
|
|
COPY --from=builder /go/bin/protoc-gen-grpc-gateway /usr/local/bin/protoc-gen-grpc-gateway
|
|
COPY --from=builder /go/bin/protoc-gen-go /usr/local/bin/protoc-gen-go
|
|
COPY --from=builder /go/bin/protoc-gen-go-grpc /usr/local/bin/protoc-gen-go-grpc
|
|
|
|
ENTRYPOINT ["/usr/local/bin/buf"]
|