2024-12-20 01:53:34 +00:00
|
|
|
# Use Python 3 base image
|
|
|
|
FROM python:3.9-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/*
|
|
|
|
|
|
|
|
# Install required packages
|
2025-01-03 04:00:38 +00:00
|
|
|
RUN pip install --no-cache-dir discord.py python-dotenv openai requests collections
|
2024-12-20 01:53:34 +00:00
|
|
|
|
|
|
|
# Copy the bot script
|
|
|
|
COPY /scripts/discordbot.py .
|
|
|
|
|
|
|
|
# Run the bot on container start
|
|
|
|
CMD ["python", "discordbot.py"]
|