Spaces:
Paused
Paused
teamx-cloner
commited on
Commit
·
57d3db6
1
Parent(s):
87e2da4
Add files via upload
Browse files- Dockerfile +10 -24
- Procfile +1 -0
- app.json +116 -53
Dockerfile
CHANGED
@@ -1,30 +1,16 @@
|
|
1 |
-
|
2 |
-
# Copyright (C) 2021-2023 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 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
11 |
|
12 |
-
COPY
|
13 |
|
14 |
-
RUN
|
15 |
|
16 |
-
|
17 |
-
RUN apt-get install -y ffmpeg python3-pip curl
|
18 |
-
RUN python3 -m pip install -U pip
|
19 |
|
20 |
-
|
21 |
-
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
22 |
-
RUN apt-get install -y nodejs
|
23 |
-
|
24 |
-
COPY . .
|
25 |
-
|
26 |
-
# changing workdir
|
27 |
-
WORKDIR "/root/TeamUltroid"
|
28 |
-
|
29 |
-
# start the bot.
|
30 |
-
CMD ["bash", "startup"]
|
|
|
1 |
+
FROM python:3.13-slim
|
|
|
|
|
|
|
2 |
|
3 |
+
WORKDIR /app
|
4 |
|
5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
6 |
+
ffmpeg \
|
7 |
+
git \
|
8 |
+
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
+
COPY requirements.txt /app/
|
11 |
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
|
14 |
+
COPY . /app/
|
|
|
|
|
15 |
|
16 |
+
CMD ["bash", "start"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Procfile
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
worker: bash start
|
app.json
CHANGED
@@ -1,56 +1,119 @@
|
|
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 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
|
|
56 |
}
|
|
|
1 |
{
|
2 |
+
"name": "TgMusicBot",
|
3 |
+
"description": "A Telegram Music Bot deployed on Heroku.",
|
4 |
+
"keywords": [
|
5 |
+
"telegram",
|
6 |
+
"music",
|
7 |
+
"bot",
|
8 |
+
"python"
|
9 |
+
],
|
10 |
+
"website": "https://github.com/AshokShau",
|
11 |
+
"repository": "https://github.com/AshokShau/TgMusicBot",
|
12 |
+
"logo": "https://te.legra.ph/file/6f99c49bdb4679acad717.jpg",
|
13 |
+
"stack": "heroku-24",
|
14 |
+
"image": "heroku/python",
|
15 |
+
"env": {
|
16 |
+
"API_ID": {
|
17 |
+
"description": "Your Telegram API ID",
|
18 |
+
"value": "",
|
19 |
+
"required": true
|
20 |
+
},
|
21 |
+
"API_HASH": {
|
22 |
+
"description": "Your Telegram API Hash",
|
23 |
+
"value": "",
|
24 |
+
"required": true
|
25 |
+
},
|
26 |
+
"TOKEN": {
|
27 |
+
"description": "Your Telegram Bot Token",
|
28 |
+
"value": "",
|
29 |
+
"required": true
|
30 |
+
},
|
31 |
+
"STRING": {
|
32 |
+
"description": "Your first session string",
|
33 |
+
"value": "",
|
34 |
+
"required": true
|
35 |
+
},
|
36 |
+
"STRING2": {
|
37 |
+
"description": "Your second session string",
|
38 |
+
"value": "",
|
39 |
+
"required": false
|
40 |
+
},
|
41 |
+
"STRING3": {
|
42 |
+
"description": "Your third session string",
|
43 |
+
"value": "",
|
44 |
+
"required": false
|
45 |
+
},
|
46 |
+
"STRING4": {
|
47 |
+
"description": "Your fourth session string",
|
48 |
+
"value": "",
|
49 |
+
"required": false
|
50 |
+
},
|
51 |
+
"STRING5": {
|
52 |
+
"description": "Your fifth session string",
|
53 |
+
"value": "",
|
54 |
+
"required": false
|
55 |
+
},
|
56 |
+
"STRING6": {
|
57 |
+
"description": "Your sixth session string",
|
58 |
+
"value": "",
|
59 |
+
"required": false
|
60 |
+
},
|
61 |
+
"STRING7": {
|
62 |
+
"description": "Your seventh session string",
|
63 |
+
"value": "",
|
64 |
+
"required": false
|
65 |
+
},
|
66 |
+
"STRING8": {
|
67 |
+
"description": "Your eighth session string",
|
68 |
+
"value": "",
|
69 |
+
"required": false
|
70 |
+
},
|
71 |
+
"STRING9": {
|
72 |
+
"description": "Your ninth session string",
|
73 |
+
"value": "",
|
74 |
+
"required": false
|
75 |
+
},
|
76 |
+
"STRING10": {
|
77 |
+
"description": "Your tenth session string",
|
78 |
+
"value": "",
|
79 |
+
"required": false
|
80 |
+
},
|
81 |
+
"OWNER_ID": {
|
82 |
+
"description": "Your Telegram User ID",
|
83 |
+
"value": "5938660179"
|
84 |
+
},
|
85 |
+
"MONGO_URI": {
|
86 |
+
"description": "Your MongoDB URI",
|
87 |
+
"value": "",
|
88 |
+
"required": true
|
89 |
+
},
|
90 |
+
"DOWNLOADS_DIR": {
|
91 |
+
"description": "Directory to store downloads",
|
92 |
+
"value": "database/music",
|
93 |
+
"required": false
|
94 |
+
},
|
95 |
+
"API_URL": {
|
96 |
+
"description": "API URL for the bot",
|
97 |
+
"value": "",
|
98 |
+
"required": false
|
99 |
+
},
|
100 |
+
"API_KEY": {
|
101 |
+
"description": "API key for the bot",
|
102 |
+
"value": "",
|
103 |
+
"required": false
|
104 |
+
},
|
105 |
+
"PROXY_URL": {
|
106 |
+
"description": "Proxy URL for the bot",
|
107 |
+
"value": "",
|
108 |
+
"required": false
|
109 |
+
}
|
110 |
+
},
|
111 |
+
"buildpacks": [
|
112 |
+
{
|
113 |
+
"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest"
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"url": "heroku/python"
|
117 |
}
|
118 |
+
]
|
119 |
}
|