# Custom Python base image with build tools pre-installed # Build this once and push to Harbor to avoid apt-get during app builds FROM python:3.11-slim # Install system dependencies that might be needed for Python packages RUN apt-get update && apt-get install -y \ gcc \ g++ \ make \ postgresql-client \ libpq-dev \ curl \ git \ && rm -rf /var/lib/apt/lists/* # Upgrade pip RUN pip install --no-cache-dir --upgrade pip setuptools wheel # Set working directory WORKDIR /app # Default command CMD ["/bin/bash"]