Download Dockerfile from TimStats/MAC2: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/TimStats/MAC2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TimStats/MAC2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TimStats/MAC2/resolve/main/Dockerfile
485 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR /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", "streamlit_app.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true", \ | |
| "--server.fileWatcherType=none"] |