generated from iAkashPattnaik/UltroidCliTemplate
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
33 lines (25 loc) · 1019 Bytes
/
Dockerfile
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
# UltroidCli
# Copyright (C) 2021 Akash Pattnaik
#
# This file is a part of < https://github.com/BLUE-DEVIL1134/UltroidCli/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/BLUE-DEVIL1134/UltroidCli/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
# Set workfir
RUN mkdir /UltroidCli
WORKDIR /UltroidCli
# download the latest release from github
RUN ver=$(curl https://raw.githubusercontent.com/BLUE-DEVIL1134/UltroidCli/main/version.txt) && curl -L -o ultroid https://github.com/BLUE-DEVIL1134/UltroidCli/releases/download/$ver/ultroid-linux
# Give Permissions
RUN chmod u+x ultroid
# Clone the repository and install the dependencies
RUN ./ultroid init
# Install Dependencies
RUN pip install -U pip \
&& pip install --no-cache-dir -r TeamUltroid/requirements.txt \
&& pip install install av --no-binary av
# Run Ultroid
CMD ["./ultroid", "heroku"]