-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDockerfile
33 lines (29 loc) · 959 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
25
26
27
28
29
30
31
32
33
FROM google/cloud-sdk
ARG KUBECTL_CLI_URL
RUN mkdir -p /src \
/scripts
WORKDIR /src
COPY platform_login /scripts
# Install Docker client
RUN apt-get update -y \
&& apt-get install \
-y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
wget \
&& curl \
-fsSL \
https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg \
| apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"\
&& apt-get update \
&& apt-get install -y docker-ce \
&& rm -rf /var/lib/apt/lists/*
# Install kubectl CLI
RUN wget -O \
/usr/local/bin/kubectl \
${KUBECTL_CLI_URL:-https://storage.googleapis.com/kubernetes-release/release/v1.7.6/bin/linux/amd64/kubectl} \
&& chmod +x /usr/local/bin/kubectl