Spaces:
Configuration error
Configuration error
Download Dockerfile from world44/humanize-e: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/spaces/world44/humanize-e/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/world44/humanize-e/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/world44/humanize-e/resolve/main/Dockerfile
700 Bytes
| # Dockerfile for humanize-e | |
| # Build: docker build -t humanize-e . | |
| # Run: docker run -p 8000:8000 -e HUMANIZE_ADAPTER=/models humanize-e | |
| FROM python:3.11-slim | |
| # Install system deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy requirements and install deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source code | |
| COPY model.py . | |
| COPY app.py . | |
| # Create adapter directory placeholder | |
| RUN mkdir -p /app/humanize-e-adapter | |
| # Expose port | |
| EXPOSE 8000 | |
| # Default command | |
| CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |