Minecraft-Texture-MCP / Dockerfile
ZeroClawAgent's picture
Upload 3 files
5c3dc4c verified
Raw
History Blame Contribute Delete
1.07 kB
# ============================================================
# Minecraft Texture Generator MCP Server
# ============================================================
# Generates 16×16 pixel Minecraft-style textures using
# Stable Diffusion (sdxl-turbo). Generates at 256×256 with
# pixel art prompting, then downscales to 16×16 with
# nearest-neighbor + color quantization.
# ============================================================
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
torch torchvision --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir \
diffusers>=0.32.0 \
transformers>=4.46.0 \
accelerate>=1.1.0 \
safetensors \
Pillow>=10.0.0 \
mcp[cli]>=1.27.0 \
uvicorn>=0.30.0 \
gradio>=4.0.0
RUN useradd -m -u 1000 appuser
WORKDIR /app
COPY server.py .
EXPOSE 7860
ENV MODEL_ID=stabilityai/sdxl-turbo
ENV PORT=7860
CMD ["python", "server.py"]