File size: 1,118 Bytes
007c645 3696fb9 1f26706 3696fb9 1f26706 3696fb9 1f26706 3696fb9 036d91a 007c645 3696fb9 ea6b9f0 007c645 3696fb9 1f26706 3696fb9 7348ff3 007c645 3696fb9 1f26706 007c645 3696fb9 ddb9069 5313aa9 007c645 3696fb9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# Ultroid - UserBot
# Copyright (C) 2021-2025 TeamUltroid
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# Please read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
FROM python:3.10-slim
# Set timezone
ENV TZ=Asia/Kolkata
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git gcc python3-dev ffmpeg mediainfo neofetch && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy bot source
COPY . .
# Allow pip to run as root without warnings
ENV PIP_ROOT_USER_ACTION=ignore
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Run installer script
RUN bash installer.sh
# Create writable session directory for Telethon
RUN mkdir -p /app/sessions && chmod -R 777 /app/sessions
# Set PYTHONPATH
ENV PYTHONPATH="${PYTHONPATH}:/app"
RUN mkdir -p /app/sessions
# Start the bot
CMD ["bash", "startup"]
|