FROM python:3.13-slim WORKDIR /app # Install dependencies COPY pyproject.toml . RUN pip install --no-cache-dir "openenv-core[core]>=0.1.0" "fastapi>=0.115.0" "pydantic>=2.0.0" "uvicorn>=0.24.0" "requests>=2.31.0" # Copy environment code COPY . . # HuggingFace Spaces requires port 7860 EXPOSE 7860 CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]