# Install Python and Python related packages
RUN apt-get update && apt-get install -y python3 python3-dev python3-venv python3-pip && \
    apt-get clean && rm -rf /var/lib/apt/lists/*
# Upgrade pip - but not all pip versions support "--break-system-packages"
RUN python3 -m pip install --upgrade pip --break-system-packages --ignore-installed || python3 -m pip install --upgrade pip