python with pre-install library for telegram bot development
1.3K
Dockerfile:
# Sử dụng hình ảnh Python chính thức làm cơ sở
FROM python:3.12
# Đặt biến môi trường để Python không tạo các tệp .pyc
ENV PYTHONDONTWRITEBYTECODE=1
# Đặt biến môi trường để Python in ra stdout và stderr ngay lập tức
ENV PYTHONUNBUFFERED=1
# Tạo thư mục làm việc và đặt nó là thư mục hiện tại
WORKDIR /app
# Sao chép tệp requirements.txt vào thư mục làm việc
COPY requirement.txt /app/
# Cài đặt các phụ thuộc được liệt kê trong requirements.txt
RUN pip install --no-cache-dir -r requirement.txt
# Sao chép tất cả các tệp từ thư mục hiện tại vào thư mục làm việc
COPY prometheus_bot.py /app/
# Chạy bot
CMD ["python", "prometheus_bot.py"]
Content type
Image
Digest
sha256:11310733b…
Size
435.4 MB
Last updated
over 2 years ago
docker pull ltp1120/telegram-bot-python