Skip to content

Commit 7bb07ca

Browse files
author
Josh Newman
committed
feat: add buf Dockerfile
1 parent a4fa80f commit 7bb07ca

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

buf.Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM golang:1.19-alpine3.16 as golang
2+
3+
RUN go install github.com/golang/protobuf/[email protected]
4+
5+
WORKDIR /workspace
6+
7+
COPY api ./api
8+
9+
FROM bufbuild/buf:1.7.0 as buf
10+
11+
COPY --from=golang /go/bin/protoc-gen-go /usr/local/bin/
12+
13+
ENTRYPOINT ["buf"]

0 commit comments

Comments
 (0)