diff --git a/Dockerfile b/Dockerfile
index 4f86931073b09170b71fc834083924e1a296608a..806af9d3e2f6392a3f0ae56cb2d06ca9576118bb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,6 +21,11 @@ ARG AGENT_URL="https://common.${REGION}.informaticacloud.com/package-manager/fil
 ARG USER=agent
 ENV INFA_HOME=/home/$USER/infaagent
 
+# this better bypass python trying to use pip install
+RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
+RUN unzip awscliv2.zip
+RUN ./aws/install
+
 # install system tools
 RUN apt-get update && apt-get install -y \
 curl \
@@ -35,9 +40,8 @@ tzdata \
 unixodbc \
 unzip \
 wget \
-libidn11
-
-RUN apt install -y --break-system-packages python3
+libidn11 \
+python3
 
 RUN python3 --version