# ─── DQA-OpenEnv Dockerfile ─────────────────────────────────────────── # Builds the Data Quality Assurance OpenEnv environment. # Hugging Face Spaces requires Dockerfile at REPO ROOT. # HF Spaces requires port 7860. # ────────────────────────────────────────────────────────────────────── FROM python:3.12-slim WORKDIR /app RUN apt-get update && \ apt-get install -y --no-install-recommends curl git && \ rm -rf /var/lib/apt/lists/* # Hugging Face writable filesystem environment variables ENV HOME=/tmp ENV HF_HOME=/tmp/huggingface ENV PYTHONUNBUFFERED=1 # Copy requirements and install before copying source COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy source code COPY . . # Set Python path so all imports resolve from /app ENV PYTHONPATH="/app:$PYTHONPATH" EXPOSE 7860 CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]