Skip to content

Commit 72714c4

Browse files
authored
Merge pull request #78 from commitdev/add-missing-deps-to-dockerfile
Fixed missing dependencies in container
2 parents 2dd20ea + 344e043 commit 72714c4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ENV GOLANG_PROTOBUF_VERSION=1.3.1
55
ENV GRPC_GATEWAY_VERSION=1.11.3
66
ENV GRPC_WEB_VERSION=1.0.6
77
ENV PROTOBUF_VERSION=3.6.1
8+
ENV TERRAFORM_VERSION=0.12.12
9+
ENV K8S_VERSION=1.14.8
810

911
RUN apk add --update --no-cache build-base curl git upx && \
1012
rm -rf /var/cache/apk/*
@@ -34,9 +36,17 @@ RUN mkdir -p /tmp/protoc && \
3436
unzip protoc.zip && \
3537
mv /tmp/protoc/include /usr/local/include
3638

39+
RUN curl -sSL \
40+
https://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/linux/amd64/kubectl \
41+
-o /usr/local/bin/kubectl
42+
43+
RUN curl -sSL \
44+
https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/aws-iam-authenticator \
45+
-o /usr/local/bin/aws-iam-authenticator
46+
3747
RUN GO111MODULE=off go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
3848

39-
RUN curl -sSLo /tmp/terraform.zip "https://releases.hashicorp.com/terraform/0.12.12/terraform_0.12.12_linux_amd64.zip" && \
49+
RUN curl -sSLo /tmp/terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
4050
unzip -d /usr/local/bin/ /tmp/terraform.zip
4151

4252
RUN chmod +x /usr/local/bin/* && \
@@ -52,7 +62,7 @@ RUN make build-deps && make build && \
5262
FROM alpine:3.10
5363
ENV \
5464
PROTOBUF_VERSION=3.6.1-r1 \
55-
GOPATH=/proto-libs
65+
GOPATH=/proto-libs
5666

5767
RUN apk add --update bash ca-certificates git python && \
5868
apk add --update -t deps make py-pip

0 commit comments

Comments
 (0)