-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
Copy pathDockerfile
24 lines (21 loc) · 907 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.12
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
unzip \
&& rm -rf /var/lib/apt/lists/*
ENV PROTOBUF_VER 3.8.0
# NOTE: most of the following assume WORDKIR is '/'
RUN set -ex \
# Task executor, will be installed in /bin
&& curl -sL https://taskfile.dev/install.sh | sh \
# Codecov uploader
&& curl -o /bin/codecov -LO https://codecov.io/bash && chmod +x /bin/codecov \
# Go runtime dependencies
&& go get github.com/golangci/govet \
&& go get golang.org/x/lint/golint \
# Protobuf tooling
&& 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/ \
&& cd .. && rm -rf protobuf