Spaces:
Sleeping
Sleeping
Download Dockerfile from nevernever69/redveil: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/spaces/nevernever69/redveil/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nevernever69/redveil/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nevernever69/redveil/resolve/main/Dockerfile
642 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends git curl && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy project files as a proper Python package | |
| COPY redveil /app/redveil | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir \ | |
| "openenv-core[core]>=0.2.2" \ | |
| uvicorn \ | |
| fastapi \ | |
| pydantic \ | |
| flask \ | |
| requests | |
| # Set PYTHONPATH so "redveil" is importable as a package | |
| ENV PYTHONPATH="/app:$PYTHONPATH" | |
| # HF Spaces expects port 7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "redveil.server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |