Unverified Commit 54095c93 authored by Massimiliano Pippi's avatar Massimiliano Pippi Committed by GitHub

move default include files where protoc can find them (#288)

parent 3d797f54
FROM golang:1.12
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
unzip \
bzip2 \
unzip \
&& rm -rf /var/lib/apt/lists/*
ENV PROTOBUF_VER 3.8.0
......@@ -20,5 +20,8 @@ RUN set -ex \
&& go get github.com/golang/protobuf/protoc-gen-go \
&& mkdir protobuf && cd protobuf \
&& curl -LO https://github.com/google/protobuf/releases/download/v$PROTOBUF_VER/protoc-$PROTOBUF_VER-linux-x86_64.zip \
&& unzip protoc-$PROTOBUF_VER-linux-x86_64.zip && cp ./bin/* /bin/ \
&& unzip protoc-$PROTOBUF_VER-linux-x86_64.zip \
&& cp ./bin/* /bin/ \
# protoc will search for default includes in the path of the binary
&& cp -r ./include /bin/ \
&& cd .. && rm -rf protobuf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment