Initial commit: Miku Discord Bot
This commit is contained in:
20
face-detector/Dockerfile
Normal file
20
face-detector/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user