Download Dockerfile from userIdc2024/Video-Meta-Data-Changing-app: direct link, hf CLI and curl.
- Browser
- Download file 856 Bytes
-
https://huggingface.co/spaces/userIdc2024/Video-Meta-Data-Changing-app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/userIdc2024/Video-Meta-Data-Changing-app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/userIdc2024/Video-Meta-Data-Changing-app/resolve/main/Dockerfile
856 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| ENV HOME=/app | |
| ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| ENV STREAMLIT_SERVER_ENABLE_CORS=false | |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false | |
| RUN mkdir -p /app/.streamlit && \ | |
| chmod -R 777 /app/.streamlit | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY src/ ./src/ | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ | |
| CMD curl --fail http://localhost:7860/_stcore/health || exit 1 | |
| CMD ["streamlit", "run", "src/streamlit_app.py"] |