smolbuilder / Dockerfile
seanpoyner's picture
Upload folder using huggingface_hub
509c844 verified
Raw
History Blame Contribute Delete
903 Bytes
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 smolbuilder.py demo.mp4 ./
COPY engine ./engine
COPY static ./static
RUN chmod -R 777 /app
ENV SMOLBUILDER_HOST=0.0.0.0 SMOLBUILDER_PORT=7860 SMOLCODE_HOST=0.0.0.0 SMOLCODE_PORT=7860 HF_HOME=/tmp/hf \
SMALLCODE_PRESET=hal-matrix \
SMALLCODE_BASE_URL=https://collapse-snake-achieving-controversial.trycloudflare.com/v1 \
SMALLCODE_API_KEY=ollama
EXPOSE 7860
CMD ["python3", "smolbuilder.py"]