Refactor Dockerfile
This commit is contained in:
parent
fe71150b76
commit
8caafb8ec4
19
Dockerfile
19
Dockerfile
@ -1,6 +1,13 @@
|
|||||||
FROM znly/protoc
|
FROM znly/protoc
|
||||||
RUN apk --update add make git go rsync
|
|
||||||
COPY . /go/src/github.com/moul/protoc-gen-gotemplate
|
ENV GOPATH=/go \
|
||||||
WORKDIR /go/src/github.com/moul/protoc-gen-gotemplate
|
PATH=/go/bin:${PATH}
|
||||||
RUN go install .
|
|
||||||
ENV PATH=${PATH}:${GOPATH}/bin
|
# 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
|
||||||
|
COPY . /go/src/github.com/moul/protoc-gen-gotemplate
|
||||||
|
WORKDIR /go/src/github.com/moul/protoc-gen-gotemplate
|
||||||
|
RUN go install .
|
||||||
|
Loading…
Reference in New Issue
Block a user