Download Dockerfile from PRB1/Velocity: direct link, hf CLI and curl.
- Browser
- Download file 825 Bytes
-
https://huggingface.co/spaces/PRB1/Velocity/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PRB1/Velocity/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PRB1/Velocity/resolve/main/Dockerfile
825 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p /tmp && chmod 777 /tmp | |
| RUN mkdir -p /.streamlit && chmod 777 /.streamlit | |
| EXPOSE 7860 | |
| ENV HOME=/tmp | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false | |
| ENV STREAMLIT_SERVER_ENABLE_CORS=true | |
| ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=500 | |
| CMD ["python", "-m", "streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false", "--server.enableCORS=true"] | |