forked from kandnub/TG-UserBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (26 loc) · 835 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
FROM python:slim-buster
RUN apt update && apt upgrade -y && \
apt install --no-install-recommends -y \
bash \
curl \
ffmpeg \
gcc \
git \
libjpeg-dev \
libjpeg62-turbo-dev \
libwebp-dev \
musl \
musl-dev \
atomicparsley \
neofetch \
rsync \
zlib1g \
zlib1g-dev
COPY . /tmp/userbot_local
WORKDIR /usr/src/app/TG-UserBot/
RUN git clone https://github.com/kandnub/TG-UserBot.git /usr/src/app/TG-UserBot/
RUN rsync --ignore-existing --recursive /tmp/userbot_local/ /usr/src/app/TG-UserBot/
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --no-warn-script-location --no-cache-dir -r requirements.txt
RUN rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp
CMD ["python", "-m", "userbot"]