FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y --no-install-recommends \ python3 python3-pip python3-venv ca-certificates && \ rm -rf /var/lib/apt/lists/* RUN python3 -m venv /opt/venv ENV PATH="/opt/venv/bin:$PATH" WORKDIR /app COPY requirements.txt smolcode_core-0.1.0-cp312-cp312-manylinux_2_39_x86_64.whl ./ RUN pip install --no-cache-dir -r requirements.txt \ ./smolcode_core-0.1.0-cp312-cp312-manylinux_2_39_x86_64.whl COPY app.py demo.mp4 ./ COPY engine ./engine COPY static ./static # HF Docker Spaces run as uid 1000; let the agent write its workspace RUN mkdir -p /app/.workspace && chmod -R 777 /app ENV SMOLCODE_HOST=0.0.0.0 SMOLCODE_PORT=7860 HF_HOME=/tmp/hf # Backend: full specialist matrix served from HAL via the public tunnel. Baked in # (URL + "ollama" key are not secret) so it reaches the container reliably; swap # this URL + rebuild to point at a durable endpoint for judging. ENV SMALLCODE_PRESET=hal-matrix \ SMALLCODE_BASE_URL=https://collapse-snake-achieving-controversial.trycloudflare.com/v1 \ SMALLCODE_API_KEY=ollama EXPOSE 7860 CMD ["python3", "app.py"]