FROM ghcr.io/ayutaz/anime-face-detector:gpu-cuda12.1 # Install supervisor and FastAPI dependencies RUN apt-get update && \ apt-get install -y supervisor && \ rm -rf /var/lib/apt/lists/* && \ pip install --no-cache-dir fastapi uvicorn python-multipart # Copy supervisor config COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Copy API COPY api /app/api WORKDIR /app # Expose ports EXPOSE 7860 6078 CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]