Spaces:
Sleeping
Sleeping
Download Dockerfile from Aryan047/Dynamic-event-detector: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/Aryan047/Dynamic-event-detector/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Aryan047/Dynamic-event-detector/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Aryan047/Dynamic-event-detector/resolve/main/Dockerfile
577 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 \ | |
| HF_HOME=/home/user/.cache/huggingface | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /home/user/app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --user --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user app.py . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true", \ | |
| "--browser.gatherUsageStats=false"] | |