-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (64 loc) · 1.22 KB
/
Copy pathDockerfile
File metadata and controls
70 lines (64 loc) · 1.22 KB
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
60
61
62
63
64
65
66
67
68
69
70
# We're using Alpine Edge
FROM alpine:edge
# install ca-certificates so that HTTPS works consistently
RUN apk add --no-cache ca-certificates
# Installing Packages
RUN apk add --no-cache --update \
bash \
build-base \
python2 \
python2-dev \
python3 \
python3-dev \
py3-pip \
bzip2-dev \
curl \
coreutils \
gcc \
g++ \
git \
util-linux \
libevent \
libjpeg-turbo-dev \
figlet \
jpeg-dev \
jpeg \
libc-dev \
aria2 \
libffi-dev \
libpq \
libwebp-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
musl-dev \
openssl-dev \
postgresql \
postgresql-client \
postgresql-dev \
openssl \
pv \
neofetch \
jq \
wget \
readline-dev \
ffmpeg \
sqlite-dev \
sudo \
zlib-dev \
zip
#
# Clone repo and prepare working directory
#
RUN git clone 'https://github.com/noobvishal/UserXMax.git' /root/userbot
RUN mkdir /root/userbot/bin/
WORKDIR /root/userbot/
#
# Copies session and config (if it exists)
#
COPY ./sample_config.env ./userbot.session* ./config.env* /root/userbot/
#
# Install requirements
#
RUN pip3 install --no-cache-dir -r requirements.txt
CMD ["python3","-m","userbot"]