# 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 | |
WORKDIR /app | |
COPY . . | |
# Install git, gcc, and python3-dev for pip to install from GitHub and build wheels | |
RUN apt-get update && apt-get install -y git gcc python3-dev | |
ENV PIP_ROOT_USER_ACTION=ignore | |
RUN pip install --no-cache-dir --prefix=/usr/local -r requirements.txt | |
RUN bash installer.sh | |
ENV PYTHONPATH="${PYTHONPATH}:/app" | |
CMD ["bash", "startup"] | |