Spaces:
Runtime error
Runtime error
Download Dockerfile from RhutuAI/IT-mental-health-env: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/RhutuAI/IT-mental-health-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RhutuAI/IT-mental-health-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RhutuAI/IT-mental-health-env/resolve/main/Dockerfile
840 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install dependencies | |
| COPY requirements.txt . | |
| COPY pyproject.toml . | |
| COPY uv.lock . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source code | |
| COPY server/ ./server/ | |
| COPY it_mental_health_environment.py . | |
| COPY models.py . | |
| COPY inference.py . | |
| COPY validate.py . | |
| COPY openenv.yaml . | |
| COPY README.md . | |
| COPY app.py . | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| # Run the server | |
| CMD ["sh", "-c", "uvicorn server.app:app --host 0.0.0.0 --port ${PORT:-7860} --workers 1 --proxy-headers"] | |