forked from TG-UserBot/TG-UserBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 707 Bytes
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:3.7-alpine
RUN apk add --no-cache --update \
bash \
curl \
ffmpeg \
gcc \
git \
libffi-dev \
libjpeg \
libjpeg-turbo-dev \
libwebp-dev \
linux-headers \
musl \
musl-dev \
neofetch \
rsync \
zlib \
zlib-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/cache/apk/* /tmp/*
CMD ["python", "-m", "userbot"]