shylane's picture
Deploy OpenEnv environment server (port 7860)
25aa289
Raw
History Blame Contribute Delete
789 Bytes
# Healthcare Claims Fraud Detection — OpenEnv Environment Server
# HuggingFace Spaces Docker (port 7860 required by HF)
FROM python:3.12-slim
WORKDIR /app
# Copy the environment package
COPY environment/ environment/
# Install all server dependencies
RUN pip install --no-cache-dir \
"fastapi>=0.111.0" \
"uvicorn[standard]>=0.30.0" \
"pydantic>=2.0.0" \
"numpy>=1.26.0" \
"scipy>=1.13.0" \
"httpx>=0.27.0"
# HuggingFace Spaces requires port 7860
EXPOSE 7860
# Run from /app so that `environment` is a top-level package.
# Relative imports inside environment/server/environment.py (from ..models import …)
# require `environment` to be the root package — not `server`.
CMD ["uvicorn", "environment.server.app:app", "--host", "0.0.0.0", "--port", "7860"]