Adding Docker Support and updating README.md

This commit is contained in:
2024-12-19 17:53:34 -08:00
parent 1d8572e12b
commit 059dbd307f
3 changed files with 37 additions and 34 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# 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
RUN pip install --no-cache-dir discord.py python-dotenv openai
# Copy the bot script
COPY /scripts/discordbot.py .
# Run the bot on container start
CMD ["python", "discordbot.py"]