-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (40 loc) · 1.04 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
# 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
#
# Installing Packages
#
RUN apk update && apk upgrade
RUN apk add --no-cache=true --update \
coreutils \
bash \
build-base \
curl \
util-linux \
libevent \
musl \
openssl-dev \
openssl \
wget \
git \
python3 \
python3-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
RUN pip3 install heroku3 telethon gitpython && rm -r /root/.cache
#
# Clone repo and prepare working directory
#
RUN git clone -b fallback https://github.com/MoveAngel/One4uBot /home/One4uBot/
WORKDIR /home/One4uBot/
#
# Install requirements
#
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
CMD ["python3","-m","userbot"]