Download Dockerfile from sairaj2/env: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/sairaj2/env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sairaj2/env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sairaj2/env/resolve/main/Dockerfile
628 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Disable all python buffering - instant logging | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| EXPOSE 7860 | |
| # Start the OpenEnv FastAPI app | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--timeout-keep-alive", "300", "--workers", "1"] | |