Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM moul/protoc-gen-gotemplate:latest as pgg | ||
|
||
FROM golang:1.11-alpine as builder | ||
RUN apk --no-cache add make git go rsync libc-dev openssh docker | ||
RUN go get -u -v \ | ||
github.com/opsee/protobuf/protoc-gen-gogoopsee | ||
|
||
FROM golang:1.11-alpine | ||
RUN apk --no-cache add git make protobuf gcc libc-dev && \ | ||
mkdir -p /.cache/go-build && \ | ||
chmod -R 777 /.cache | ||
COPY --from=pgg /go/bin/* /go/bin/ | ||
COPY --from=builder /go/bin/* /go/bin/ | ||
COPY --from=pgg /protobuf /protobuf | ||
ENV GOPATH=/go \ | ||
PATH=/go/bin:${PATH} \ | ||
GOROOT=/usr/local/go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
IMAGE ?= pathwar/protoc:v1 | ||
|
||
.PHONY: release | ||
build: | ||
docker build --pull -t $(IMAGE) . | ||
|
||
.PHONY: release | ||
release: build | ||
docker push $(IMAGE) |