forked from yamtargokboru3810/Telegram-UserBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (47 loc) · 1 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Biz Arch Linux kullanıyoruz <3
FROM archlinux:latest
# Gerekyi paketleri yükle
RUN pacman -Syyu --noconfirm \
aria2 \
curl \
chromium \
ffmpeg \
figlet \
gcc \
git \
jq \
libevent \
libffi \
libjpeg \
libpng \
libpqxx \
libsystemd \
libwebp \
libxml2 \
libxslt \
linux-headers \
musl \
neofetch \
nss \
openssl \
postgresql \
postgresql-client \
python3 \
python-pip \
pv \
sudo \
tzdata \
util-linux \
wget
# Repoyu klonla ve çalışma dizinini hazırla
RUN git clone https://github.com/yamtargokboru3810/Telegram-UserBot -b seden /root/sedenbot
RUN mkdir /root/sedenbot/bin/
WORKDIR /root/sedenbot/
# Oturum ve yapılandırmayı kopyala (varsa)
COPY ./sample_config.env ./userbot.session* ./config.env* /root/sedenbot/
# Zaman dilimini ayarla
ENV TZ=Europe/Istanbul
# Gerekli pip modüllerini kur
RUN pip3 install -r requirements.txt
# Botu çalıştır
CMD ["python3","main.py"]