mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2025-01-22 14:44:07 +03:00
16 lines
337 B
Docker
16 lines
337 B
Docker
FROM python:3.10-slim
|
|
|
|
# Set work directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy bot code
|
|
COPY bot.py .
|
|
|
|
# Set environment variables (you can also set them in docker-compose or externally)
|
|
# ENV TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
|
|
|
|
CMD ["python", "bot.py"] |