FROM python:3.11-slim # System dependencies RUN apt-get update && apt-get install -y \ gcc \ g++ \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY app.py . COPY index.html . # Create directory for SQL results RUN mkdir -p /app/sql_results # Expose port EXPOSE 8000 # Run the app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]