-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (35 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
36 lines (35 loc) · 1.23 KB
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
34
35
36
FROM python:3.8-slim
RUN \
# Install dependency and jq
apt-get update -qq \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
git \
curl \
gnupg2 \
groff-base \
jq \
software-properties-common \
# Install kubectl
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
&& echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends \
kubectl \
# Install kubesec
&& curl -sSL https://github.com/shyiko/kubesec/releases/download/0.9.2/kubesec-0.9.2-linux-amd64 -o kubesec \
&& chmod a+x kubesec \
&& mv kubesec /usr/local/bin/ \
# Install Docker CE
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& apt-key fingerprint 0EBFCD88 \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
&& apt-get update -qq \
&& apt-get install -y \
docker-ce-cli \
# Install AWS CLI
&& pip install --no-cache-dir --upgrade awscli