Spaces:
Sleeping
Sleeping
Download Dockerfile from valiyevfagan/test_ui2: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/valiyevfagan/test_ui2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/valiyevfagan/test_ui2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/valiyevfagan/test_ui2/resolve/main/Dockerfile
539 Bytes
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user:user . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true", \ | |
| "--browser.gatherUsageStats=false"] |