Wizard-Vibe-Studio / Dockerfile
dryymatt's picture
Upload Dockerfile
9ec274d verified
raw
history blame contribute delete
616 Bytes
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir aiohttp huggingface_hub
COPY core.py .
COPY server.py .
COPY ghost_deploy.py .
COPY hot_reload.py .
COPY sandbox.sh .
COPY static/ static/
COPY generated/ generated/
RUN chmod +x sandbox.sh
# ─── VISIBILITY OVERRIDE: exposed port 7860 ───
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://0.0.0.0:7860/api/health')" || exit 1
# ─── Entrypoint: aiohttp server on 0.0.0.0:7860 ───
CMD ["python", "-u", "server.py"]