# 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"]