Spaces:
Running
Running
File size: 979 Bytes
7c8a5fa f27d0a8 7c8a5fa f0baefe 7c8a5fa fe52b3d 96872aa 7c8a5fa f0baefe 7c8a5fa 96872aa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Operational Command lab Space — stdlib Python hologram, no npm.
# GCR pin: HF builders fail public.ecr.aws with exit 128. Anatomy already runs this FROM.
# Dockerfile-derived Hub payload: server.py + space/index.html + README.
FROM mirror.gcr.io/library/python:3.12-slim
WORKDIR /app
ENV HOST=0.0.0.0
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# Shared source-of-truth for the second brain, Anatomy, formula wiring, receipts,
# consensus, restraint and governance modules. Exact Git SHA is intentionally pinned.
RUN python -m pip install --no-cache-dir "https://github.com/szl-holdings/szl-substrate/archive/ad2e04374717ef79dbf7dbb91aea5a8480ed10c3.tar.gz"
COPY server.py ./server.py
COPY space/index.html ./index.html
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=5 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/healthz', timeout=4)"
CMD ["python", "-u", "server.py"]
|