Download Dockerfile from elahw/Runnow: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/elahw/Runnow/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/elahw/Runnow/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/elahw/Runnow/resolve/main/Dockerfile
783 Bytes
| # RunNow Gradio Frontend Dockerfile | |
| # --------------------------------- | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| # Set workdir | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements (if exists) and install Python dependencies | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip && \ | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| # Copy the rest of the code | |
| COPY . . | |
| # Expose Gradio default port | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| # Entrypoint | |
| CMD ["python", "app.py"] | |