Anima-2B-CPU / Dockerfile
Nekochu's picture
exact copy of working private Space: Docker + n-Arno V1 Turbo + CFG 1 (899s proven)
c49a405
raw
history blame contribute delete
668 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git cmake build-essential && \
rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 --recurse-submodules https://github.com/leejet/stable-diffusion.cpp /tmp/sdcpp && \
cd /tmp/sdcpp && mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DSD_BUILD_SHARED_LIBS=OFF && \
cmake --build . --config Release -j1 && \
cp bin/sd-cli /usr/local/bin/sd-cli && \
rm -rf /tmp/sdcpp
RUN pip install --no-cache-dir "gradio[mcp]" Pillow huggingface-hub
WORKDIR /app
COPY app.py .
COPY README.md .
EXPOSE 7860
CMD ["python", "app.py"]