This repository has been archived by the owner on Apr 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Dockerfile
76 lines (68 loc) · 1.66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# We're using Alpine Edge
FROM alpine:edge
# We have to uncomment Community repo for some packages
RUN sed -e 's;^#http\(.*\)/edge/community;http\1/edge/community;g' -i /etc/apk/repositories
# install ca-certificates so that HTTPS works consistently
# other runtime dependencies for Python are installed later
RUN apk add --no-cache ca-certificates
# Installing Packages
RUN apk add --no-cache --update \
bash \
build-base \
bzip2-dev \
curl \
coreutils \
figlet \
gcc \
g++ \
git \
aria2 \
util-linux \
libevent \
libjpeg-turbo-dev \
chromium \
chromium-chromedriver \
jpeg-dev \
libc-dev \
libffi-dev \
libpq \
libwebp-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
musl-dev \
neofetch \
openssl-dev \
postgresql-client \
postgresql-dev \
pv \
jq \
wget \
python3-dev \
readline-dev \
ffmpeg \
sqlite-dev \
sudo \
zlib-dev \
python-dev
RUN python3 -m ensurepip \
&& pip3 install --upgrade pip setuptools \
&& rm -r /usr/lib/python*/ensurepip && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
#
# Clone repo and prepare working directory
#
RUN git clone https://github.com/AvinashReddy3108/PaperplaneExtended /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 -r requirements.txt
CMD ["python3","-m","userbot"]