Skip to content

Commit e7fa64b

Browse files
authored
Merge pull request #66 from krancour/add-protoc
feat(image): Add protoc and protoc-gen-go to image
2 parents 427b85a + c7c1e28 commit e7fa64b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

rootfs/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
1313
util-linux \
1414
jq \
1515
man \
16+
unzip \
1617
upx \
1718
zip \
1819
--no-install-recommends \
@@ -24,10 +25,19 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
2425
&& chmod +x /usr/local/bin/shellcheck \
2526
&& curl -L https://storage.googleapis.com/k8s-claimer/git-e4dcc16/k8s-claimer-git-e4dcc16-linux-amd64 -o /usr/local/bin/k8s-claimer \
2627
&& chmod +x /usr/local/bin/k8s-claimer \
28+
&& curl -sSL -o /tmp/protoc.zip https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip \
29+
&& unzip /tmp/protoc.zip 'bin/protoc' -d /usr/local \
30+
&& rm /tmp/protoc.zip \
31+
&& apt-get purge -y --auto-remove \
32+
unzip \
33+
&& apt-get autoremove -y \
34+
&& apt-get clean -y \
35+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc \
2736
&& go get -u -v \
2837
github.com/alecthomas/gometalinter \
2938
github.com/onsi/ginkgo/ginkgo \
3039
github.com/mitchellh/gox \
40+
github.com/golang/protobuf/protoc-gen-go \
3141
&& gometalinter --install
3242

3343
WORKDIR /go

0 commit comments

Comments
 (0)