forked from saddit/fjqndxx-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 847 Bytes
/
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
FROM python:3.9-alpine
# run on evety Monday,Tuesday at 9:00
ENV CRONTIME="0 9 * * 1,4"
ENV username=
ENV password=
ENV pubKey=A7E74D2B6282AEB1C5EA3C28D25660A7
# ocr:baidu_image
ENV ocrType=
ENV ocrSecret=
ENV ocrKey=
# bark, plus-plus, server_chan
ENV sendType=
ENV sendKey=
# success, fail, both
ENV sendMode=
ENV extUsers=
ENV TZ=Asia/Shanghai
RUN apk update; \
apk add tzdata git gcc libc-dev libxml2-dev libxslt-dev;
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone
RUN git clone https://github.com/838239178/tk-auto-study.git /root/tk-auto-study \
&& cd /root/tk-auto-study \
&& git checkout master; \
pip install -r requirements.txt;
RUN crontab -l | { cat; echo "$CRONTIME python /root/tk-auto-study/docker.py"; } | crontab -; \
crond -b -l 8;
CMD ["tail", "-f", "/dev/null"]