2024-12-19 17:53:34 -08:00
|
|
|
# Use Python 3 base image
|
2025-12-10 11:26:01 -08:00
|
|
|
FROM python:3.11-slim
|
2024-12-19 17:53:34 -08:00
|
|
|
|
|
|
|
|
# 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 .
|
2024-12-19 17:53:34 -08:00
|
|
|
|
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
|
2024-12-19 17:53:34 -08:00
|
|
|
COPY /scripts/discordbot.py .
|
2025-12-10 11:26:01 -08:00
|
|
|
COPY /scripts/system_prompt.txt .
|
2024-12-19 17:53:34 -08:00
|
|
|
|
|
|
|
|
# Run the bot on container start
|
|
|
|
|
CMD ["python", "discordbot.py"]
|