20 lines
410 B
Docker
20 lines
410 B
Docker
# Use the official Python image
|
|
FROM python:3.10-slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the bot script and requirements file to the working directory
|
|
COPY bot.py ./
|
|
COPY requirements.txt ./
|
|
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose no ports, but needed for convention
|
|
EXPOSE 8000
|
|
|
|
# Command to run the bot
|
|
CMD ["python", "bot.py"]
|