2025-12-07 17:15:09 +02:00
|
|
|
FROM python:3.11-slim
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
2026-01-09 00:03:59 +02:00
|
|
|
# Install system dependencies
|
|
|
|
|
# ffmpeg: video/audio processing for media handling
|
|
|
|
|
# libgl1: OpenGL library required by opencv-contrib-python
|
|
|
|
|
# libglib2.0-0: GLib library (common dependency)
|
2025-12-07 17:15:09 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
|
ffmpeg \
|
2026-01-09 00:03:59 +02:00
|
|
|
libgl1 \
|
|
|
|
|
libglib2.0-0 \
|
2026-01-11 02:01:41 +02:00
|
|
|
ca-certificates \
|
|
|
|
|
curl \
|
|
|
|
|
gnupg \
|
|
|
|
|
lsb-release \
|
2025-12-07 17:15:09 +02:00
|
|
|
&& apt-get clean \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2026-01-30 21:43:20 +02:00
|
|
|
# Install Playwright browsers with system dependencies (for UNO automation)
|
|
|
|
|
RUN playwright install --with-deps chromium
|
|
|
|
|
|
2026-01-11 02:01:41 +02:00
|
|
|
# Install Docker CLI and docker compose plugin so the bot can build/create the face detector container
|
|
|
|
|
RUN set -eux; \
|
|
|
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; \
|
|
|
|
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
|
|
|
|
|
> /etc/apt/sources.list.d/docker.list; \
|
|
|
|
|
apt-get update; \
|
|
|
|
|
apt-get install -y docker-ce-cli docker-compose-plugin; \
|
|
|
|
|
apt-get clean; rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2025-12-07 17:15:09 +02:00
|
|
|
COPY bot.py .
|
|
|
|
|
COPY server_manager.py .
|
|
|
|
|
COPY command_router.py .
|
|
|
|
|
COPY utils /app/utils
|
|
|
|
|
COPY commands /app/commands
|
|
|
|
|
COPY memory /app/memory
|
|
|
|
|
COPY static /app/static
|
|
|
|
|
COPY globals.py .
|
|
|
|
|
COPY api.py .
|
|
|
|
|
COPY api_main.py .
|
|
|
|
|
COPY miku_lore.txt .
|
|
|
|
|
COPY miku_prompt.txt .
|
|
|
|
|
COPY miku_lyrics.txt .
|
2026-01-02 17:11:58 +02:00
|
|
|
COPY evil_miku_lore.txt .
|
|
|
|
|
COPY evil_miku_prompt.txt .
|
|
|
|
|
COPY evil_miku_lyrics.txt .
|
2025-12-07 17:15:09 +02:00
|
|
|
COPY MikuMikuBeam.mp4 .
|
|
|
|
|
COPY Miku_BasicWorkflow.json .
|
|
|
|
|
COPY moods /app/moods/
|
|
|
|
|
|
|
|
|
|
CMD ["python", "-u", "bot.py"]
|