Merge pull request #75 from moul/dev/moul/fix-docker-build
Fix Docker build
This commit is contained in:
commit
ba84ae0c01
19
Dockerfile
19
Dockerfile
@ -1,6 +1,13 @@
|
||||
FROM znly/protoc
|
||||
RUN apk --update add make git go rsync
|
||||
COPY . /go/src/github.com/moul/protoc-gen-gotemplate
|
||||
WORKDIR /go/src/github.com/moul/protoc-gen-gotemplate
|
||||
RUN go install .
|
||||
ENV PATH=${PATH}:${GOPATH}/bin
|
||||
FROM znly/protoc
|
||||
|
||||
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
|
||||
COPY . /go/src/github.com/moul/protoc-gen-gotemplate
|
||||
WORKDIR /go/src/github.com/moul/protoc-gen-gotemplate
|
||||
RUN go install .
|
||||
|
Loading…
x
Reference in New Issue
Block a user