teamx-cloner commited on
Commit
57d3db6
·
1 Parent(s): 87e2da4

Add files via upload

Browse files
Files changed (3) hide show
  1. Dockerfile +10 -24
  2. Procfile +1 -0
  3. app.json +116 -53
Dockerfile CHANGED
@@ -1,30 +1,16 @@
1
- # Ultroid - UserBot
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
- FROM theteamultroid/ultroid:main
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
- COPY installer.sh .
13
 
14
- RUN bash installer.sh
15
 
16
- # the basic requirements.
17
- RUN apt-get install -y ffmpeg python3-pip curl
18
- RUN python3 -m pip install -U pip
19
 
20
- # install nodejs.
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
- "name": "Ultroid UserBot",
3
- "description": "Pluggable telegram userbot, made in python using Telethon.",
4
- "logo": "https://graph.org/file/031957757a4f6a5191040.jpg",
5
- "keywords": [
6
- "Telethon",
7
- "telegram",
8
- "userbot",
9
- "python",
10
- "ultroid"
11
- ],
12
- "repository": "https://github.com/TeamUltroid/Ultroid",
13
- "website": "https://ultroid.tech",
14
- "success_url": "https://t.me/TeamUltroid",
15
- "stack": "container",
16
- "env": {
17
- "API_ID": {
18
- "description": "You api id, from my.telegram.org or @ScrapperRoBot.",
19
- "value": "",
20
- "required": false
21
- },
22
- "API_HASH": {
23
- "description": "You api hash, from my.telegram.org or @ScrapperRoBot.",
24
- "value": "",
25
- "required": false
26
- },
27
- "SESSION": {
28
- "description": "Session String (telethon or pyrogram) for your telegram user account. The userbot will NOT work without a session string!!",
29
- "value": ""
30
- },
31
- "REDIS_URI": {
32
- "description": "Redis endpoint URL, from redislabs.com",
33
- "value": ""
34
- },
35
- "REDIS_PASSWORD": {
36
- "description": "Redis endpoint password, from redislabs.com",
37
- "value": ""
38
- },
39
- "HEROKU_API": {
40
- "description": "Heroku API token. Mandatory for Heroku Deploy...",
41
- "value": "",
42
- "required": false
43
- },
44
- "HEROKU_APP_NAME": {
45
- "description": "Name of your Heroku app, given in the first blank on this page. To be added if deploying to heroku ONLY.",
46
- "value": "",
47
- "required": false
48
- }
49
- },
50
- "formation": {
51
- "ultroid": {
52
- "quantity": 1,
53
- "size": "eco"
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
  }