2018-08-28 18:11:38 +03:00
|
|
|
FROM znly/protoc:0.3.0
|
2017-10-10 11:58:05 +03:00
|
|
|
|
|
|
|
ENV GOPATH=/go \
|
|
|
|
PATH=/go/bin:${PATH}
|
|
|
|
|
|
|
|
# Install deps and common tools
|
|
|
|
RUN apk --update add make git go rsync libc-dev \
|
|
|
|
&& go get -u golang.org/x/tools/cmd/goimports
|
|
|
|
|
|
|
|
# Install protoc-gen-gotemplate
|
2018-09-12 21:29:07 +03:00
|
|
|
COPY . /go/src/moul.io/protoc-gen-gotemplate
|
|
|
|
WORKDIR /go/src/moul.io/protoc-gen-gotemplate
|
2018-08-14 01:56:16 +03:00
|
|
|
RUN git remote set-url origin https://github.com/moul/protoc-gen-gotemplate
|
2017-10-26 17:48:58 +03:00
|
|
|
RUN go install . ./cmd/web-editor
|