Skip to content

Commit 5fdf498

Browse files
committed
follow the updates on dev branch
1 parent bc11873 commit 5fdf498

File tree

2 files changed

+31
-26
lines changed

2 files changed

+31
-26
lines changed

Dockerfile

+4-24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine
1+
FROM alpine:edge
22
MAINTAINER Roy Xiang <[email protected]>
33

44
ENV LANG C.UTF-8
@@ -8,18 +8,12 @@ RUN apk add --update --no-cache ca-certificates
88
RUN set -ex \
99
&& apk add --no-cache --virtual .run-deps \
1010
ffmpeg \
11-
freetype \
12-
lcms2 \
13-
libjpeg-turbo \
1411
libmagic \
15-
openblas \
16-
openjpeg \
1712
python3 \
1813
py3-certifi \
14+
py3-numpy \
15+
py3-pillow \
1916
py3-requests \
20-
tiff \
21-
libwebp \
22-
zlib \
2317
&& ln -sf "$(python3 -c 'import requests; print(requests.__path__[0])')/cacert.pem" \
2418
"$(python3 -c 'import certifi; print(certifi.__path__[0])')/cacert.pem"
2519

@@ -36,22 +30,8 @@ RUN set -ex \
3630
&& apk del .fetch-deps
3731

3832
RUN set -ex \
39-
&& apk add --no-cache --virtual .build-deps \
40-
freetype-dev \
41-
lcms2-dev \
42-
libjpeg-turbo-dev \
43-
musl-dev \
44-
openblas-dev \
45-
openjpeg-dev \
46-
python3-dev \
47-
tiff-dev \
48-
libwebp-dev \
49-
zlib-dev \
50-
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
5133
&& pip3 install -r /opt/ehForwarderBot/requirements.txt \
52-
&& rm /usr/include/xlocale.h \
53-
&& rm -rf /root/.cache \
54-
&& apk del .build-deps
34+
&& rm -rf /root/.cache
5535

5636
WORKDIR /opt/ehForwarderBot
5737

README.md

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
Unofficial Docker image for [EH Forwarder Bot](https://github.com/blueset/ehForwarderBot). Maintained by [Roy Xiang](http://github.com/RoyXiang). Included all officialy maintained channels, updated with the latest master branch.
1+
Unofficial Docker image for [EH Forwarder Bot](https://github.com/blueset/ehForwarderBot). Maintained by [Roy Xiang](http://github.com/RoyXiang). Included all officialy maintained channels.
2+
3+
# Supported tags and respective `Dockerfile` links
4+
5+
* `latest` ([Dockerfile](https://github.com/RoyXiang/docker-EFB/blob/master/Dockerfile))
6+
* `dev` ([Dockerfile](https://github.com/RoyXiang/docker-EFB/blob/dev/Dockerfile))
27

38
# Get Started
49

10+
Make sure you have `config.py` in the current working directory.
11+
12+
If you use Telegram as your master channel and do not have a `tgdata.db` backuped. You need to create one first:
13+
14+
```
15+
$ touch tgdata.db
16+
```
17+
18+
Then start a docker container by the following command:
19+
20+
```
21+
$ docker run -d --restart=always \
22+
--name=ehforwarderbot \
23+
-v $(pwd)/config.py:/opt/ehForwarderBot/config.py \
24+
-v $(pwd)/tgdata.db:/opt/ehForwarderBot/plugins/eh_telegram_master/tgdata.db \
25+
royx/docker-efb
26+
```
27+
28+
If an interactive process is needed for authentication (like WeChat), check it in docker logs:
29+
530
```
6-
$ docker run -v config.py:/opt/ehForwarderBot/config.py -v tgdata.db:/opt/ehForwarderBot/plugins/eh_telegram_master/tgdata.db royx/docker-efb
31+
$ docker logs ehforwarderbot
732
```
833

934
# Volumes

0 commit comments

Comments
 (0)