Files
OpenWebUI-Discordbot/Dockerfile
T

24 lines
577 B
Docker
Raw Normal View History

# Use Python 3 base image
2025-12-10 11:26:01 -08:00
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies for audio support
RUN apt-get update && apt-get install -y \
python3-pip \
libopus0 \
&& rm -rf /var/lib/apt/lists/*
2025-12-10 11:26:01 -08:00
# Copy requirements file
COPY /scripts/requirements.txt .
2025-12-10 11:26:01 -08:00
# Install required packages from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the bot script and system prompt
COPY /scripts/discordbot.py .
2025-12-10 11:26:01 -08:00
COPY /scripts/system_prompt.txt .
# Run the bot on container start
CMD ["python", "discordbot.py"]