Spaces:
Runtime error
Runtime error
Download Dockerfile from Ahsamkk/urdusentimentdocker: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/Ahsamkk/urdusentimentdocker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ahsamkk/urdusentimentdocker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ahsamkk/urdusentimentdocker/resolve/main/Dockerfile
440 Bytes
| # Use a minimal Python base image | |
| FROM python:3.10-slim | |
| # Avoid interactive prompts | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install only what’s required | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Copy files | |
| WORKDIR /app | |
| COPY app.py requirements.txt /app/ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Run your app | |
| CMD ["python", "app.py"] | |