forked from phoenixxie0/efb-wechat-itchat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (40 loc) · 1.98 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
FROM alpine:latest
MAINTAINER Phoenix <hkxseven007@gmail.com>
ENV LANG C.UTF-8
ENV TZ 'Asia/Shanghai'
RUN set -ex \
&& apk add --no-cache udns \
&& apk add --no-cache --virtual .run-deps \
ca-certificates tzdata \
ffmpeg \
libmagic \
tiff \
libwebp \
freetype \
lcms2 \
openjpeg \
openblas \
py3-olefile py3-numpy py3-pillow py3-requests py3-pip py3-cryptography py3-decorator \
git \
zlib-dev \
cairo \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
RUN set -ex \
&& pip3 install --upgrade pip \
&& pip3 install git+https://github.com/ehForwarderBot/ehForwarderBot \
&& pip3 install git+https://github.com/ehForwarderBot/efb-telegram-master \
&& pip3 install git+https://github.com/ehForwarderBot/efb-wechat-slave \
&& pip3 install lottie \
&& pip3 install cairosvg \
&& sed -i 's/channel_emoji = "💬"/channel_emoji = "𝙒𝙚𝙘𝙝𝙖𝙩"/g' /usr/lib/python3.*/site-packages/efb_wechat_slave/__init__.py \
&& sed -i "s/{self.chat_type_emoji}/丨/g" /usr/lib/python3.*/site-packages/efb_telegram_master/chat.py \
&& pip3 install git+https://github.com/ehForwarderBot/efb-mp-instantview-middleware \
&& pip3 install git+https://github.com/ehForwarderBot/efb-link_preview-middleware \
&& pip3 install git+https://github.com/ehForwarderBot/efb-voice_recog-middleware \
&& pip3 install git+https://github.com/ehForwarderBot/efb-msg_blocker-middleware \
&& pip3 install git+https://github.com/ehForwarderBot/efb-patch-middleware \
&& pip3 install git+https://github.com/zhangzhishan/efb-filter-middleware \
&& pip3 install python-telegram-bot[socks] \
&& rm -rf ~/.cache
CMD ["ehforwarderbot"]