20 lines
359 B
Docker
20 lines
359 B
Docker
FROM python:3.9-slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the requirements.txt and the script to the container
|
|
COPY requirements.txt .
|
|
COPY bot.py .
|
|
COPY channelnames.json config/
|
|
|
|
# Create necessary directories
|
|
RUN mkdir -p data
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Run the bot
|
|
CMD ["python", "bot.py"]
|
|
|