22 lines
577 B
Docker
22 lines
577 B
Docker
# Use the official Python image from the Docker Hub
|
|
FROM python:3.9-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy the requirements file into the container
|
|
COPY requirements.txt .
|
|
|
|
# Install the dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the rest of the application code into the container
|
|
COPY . .
|
|
|
|
# Set environment variables (optional, can also be set in docker-compose.yml)
|
|
# ENV TELEGRAM_API_TOKEN=your_telegram_api_token
|
|
# ENV METUBE_URL=http://metube.local.com/add
|
|
|
|
# Command to run the bot
|
|
CMD ["python", "bot.py"]
|