FROM python:3.9 RUN apt -y --fix-missing update RUN apt install -y curl vim unzip jq telnet dnsutils RUN apt-get update \ && apt-get install -y --no-install-recommends \ postgresql-client \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt ./ RUN pip install -r requirements.txt #Install kubectl for the simulator pod scaler RUN apt-get install -y apt-transport-https ca-certificates RUN curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg RUN echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list RUN apt-get update RUN apt-get install -y kubectl RUN kubectl version --client #Install aws cli RUN pip install awscli RUN mkdir /root/.aws COPY config /root/.aws COPY . .