1 # Use imutable image tags rather than mutable tags (like ubuntu:20.04)
2 FROM ubuntu:focal-20220531
5 ARG KUBE_VERSION=v1.19.16
7 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
11 libssl-dev python3-dev sshpass apt-transport-https jq moreutils \
12 ca-certificates curl gnupg2 software-properties-common python3-pip unzip rsync git \
13 && rm -rf /var/lib/apt/lists/*
21 RUN /usr/bin/python3 -m pip install --no-cache-dir pip -U \
22 && python3 -m pip install --no-cache-dir -r requirements.txt \
23 && update-alternatives --install /usr/bin/python python /usr/bin/python3 1
25 RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/$ARCH/kubectl \
26 && chmod a+x kubectl \
27 && mv kubectl /usr/local/bin/kubectl
29 RUN chmod a+x deploy.sh
31 CMD /kubeadm/deploy.sh