Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: Danish <danish@ultroid.tech> Co-authored-by: Mahesh Chauhan <84653476+vasusen-code@users.noreply.github.com> Co-authored-by: Aditya <xditya@ultroid.tech> Co-authored-by: CyrusXD <79554993+Ashutosh1478@users.noreply.github.com>
25 lines
841 B
Docker
25 lines
841 B
Docker
# Ultroid - UserBot
|
|
# Copyright (C) 2021-2022 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 theteamultroid/ultroid:main
|
|
|
|
# set timezone
|
|
ENV TZ=Asia/Kolkata
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
# cloning the repo and installing requirements.
|
|
&& git clone https://github.com/TeamUltroid/Ultroid.git /root/TeamUltroid/ \
|
|
&& pip3 install --no-cache-dir -r root/TeamUltroid/requirements.txt \
|
|
&& pip3 install av --no-binary av
|
|
|
|
# Railway's banned dependency
|
|
RUN if [ ! $RAILWAY_STATIC_URL ]; then pip3 install --no-cache-dir yt-dlp; fi
|
|
|
|
# changing workdir
|
|
WORKDIR /root/TeamUltroid/
|
|
|
|
# start the bot
|
|
CMD ["bash", "startup"]
|