Sign inSign up

ltp1120/telegram-bot-python

By ltp1120

•Updated over 2 years ago

python with pre-install library for telegram bot development

Image
Languages & frameworks
0

1.3K

ltp1120/telegram-bot-python repository overview

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"]

Tag summary

Content type

Image

Digest

sha256:11310733b…

Size

435.4 MB

Last updated

over 2 years ago

docker pull ltp1120/telegram-bot-python