Spaces:
Running
Running
Download Dockerfile from ethanarnold/screenase: direct link, hf CLI and curl.
- Browser
- Download file 719 Bytes
-
https://huggingface.co/spaces/ethanarnold/screenase/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ethanarnold/screenase/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ethanarnold/screenase/resolve/main/Dockerfile
719 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libpango-1.0-0 \ | |
| libpangoft2-1.0-0 \ | |
| libharfbuzz0b \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt ./ | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| 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"] | |