Download Dockerfile from GenetikaPlus/segmentation-eval-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/spaces/GenetikaPlus/segmentation-eval-dashboard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GenetikaPlus/segmentation-eval-dashboard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GenetikaPlus/segmentation-eval-dashboard/resolve/main/Dockerfile
807 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Dev Mode requirements for Docker Spaces: | |
| # bash, curl, wget, procps, git, git-lfs. | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| bash \ | |
| curl \ | |
| wget \ | |
| procps \ | |
| git \ | |
| git-lfs \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd --create-home --uid 1000 appuser | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r /app/requirements.txt | |
| COPY . /app | |
| RUN chown -R 1000:1000 /app | |
| USER 1000 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false", "--browser.gatherUsageStats=false"] | |