FROM python:3.11-slim WORKDIR /app # Copy the entire soc_analyst_env package from repo root # HF Spaces builds from the repo root, so we copy the soc_analyst_env directory COPY soc_analyst_env /app/soc_analyst_env/ # Install dependencies from server requirements first RUN pip install --no-cache-dir -r /app/soc_analyst_env/server/requirements.txt # Install the package in editable mode RUN pip install --no-cache-dir -e /app/soc_analyst_env/ # Expose HF Spaces port EXPOSE 7860 # Run the server from the package CMD ["uvicorn", "soc_analyst_env.server.app:app", "--host", "0.0.0.0", "--port", "7860"]