Update Dockerfile
Browse files- Dockerfile +17 -14
Dockerfile
CHANGED
@@ -1,21 +1,24 @@
|
|
1 |
-
# Ultroid - UserBot
|
2 |
-
# Copyright (C) 2021-2025 TeamUltroid
|
3 |
-
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
|
4 |
-
# PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
|
5 |
|
6 |
-
FROM python:3.10-slim
|
7 |
|
8 |
-
# set timezone
|
9 |
-
ENV TZ=Asia/Kolkata
|
10 |
-
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
11 |
|
12 |
-
WORKDIR /app
|
13 |
|
14 |
-
COPY . .
|
15 |
|
16 |
-
|
17 |
-
RUN
|
18 |
|
19 |
-
|
|
|
20 |
|
21 |
-
|
|
|
|
|
|
1 |
+
# Ultroid - UserBot
|
2 |
+
# Copyright (C) 2021-2025 TeamUltroid
|
3 |
+
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
|
4 |
+
# PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
|
5 |
|
6 |
+
FROM python:3.10-slim
|
7 |
|
8 |
+
# set timezone
|
9 |
+
ENV TZ=Asia/Kolkata
|
10 |
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
11 |
|
12 |
+
WORKDIR /app
|
13 |
|
14 |
+
COPY . .
|
15 |
|
16 |
+
# Install git for pip to install from GitHub
|
17 |
+
RUN apt-get update && apt-get install -y git
|
18 |
|
19 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
20 |
+
RUN bash installer.sh
|
21 |
|
22 |
+
ENV PYTHONPATH="${PYTHONPATH}:/app"
|
23 |
+
|
24 |
+
CMD ["bash", "startup"]
|