Download Dockerfile from HuggingFaceSwarms/pybot-msgboard: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/HuggingFaceSwarms/pybot-msgboard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HuggingFaceSwarms/pybot-msgboard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HuggingFaceSwarms/pybot-msgboard/resolve/main/Dockerfile
587 Bytes
| # Serve local archive bytes instead of the static SDK's cross-origin LFS URLs. | |
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR /home/user/site | |
| COPY --chown=user server.py /home/user/server.py | |
| COPY --chown=user index.html board.html ./ | |
| COPY --chown=user web ./web | |
| COPY --chown=user assets ./assets | |
| COPY --chown=user data ./data | |
| RUN python -c "from pathlib import Path; assert Path('data/events.bin.gz').open('rb').read(2) == bytes([31, 139]), 'Archive index must contain materialized gzip bytes, not an LFS pointer'" | |
| EXPOSE 7860 | |
| CMD ["python", "/home/user/server.py"] | |