forked from carman80/QRabbitPro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
93 lines (72 loc) · 2.73 KB
/
Copy pathDockerfile
File metadata and controls
93 lines (72 loc) · 2.73 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM python:3.9-slim-buster
# RUN apt update \
# && apt-get install -yq --no-install-recommends \
# sudo \
# python3-dev \
# gcc \
# libc-dev \
# git \
# && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
# && echo "Asia/Shanghai" > /etc/timezone \
# && git clone https://github.com/shufflewzc/QRabbitPro.git /Rabbit \
# && cd /Rabbit \
# && pip3 install --no-cache-dir -r requirements.txt \
# && rm -rf /var/lib/apt/lists/*
#RUN apt-get purge --auto-remove cmake
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates
RUN apt-get install -y software-properties-common lsb-release
RUN apt-get update
RUN apt-get install -y cmake
RUN apt update
RUN apt-get install -yq --no-install-recommends sudo
RUN apt-get install -yq --no-install-recommends python3-dev gcc libc-dev git cmake
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
RUN git clone https://github.com/BenMake/QRabbitPro.git /Rabbit
RUN cd /Rabbit
RUN apt-get install -yq --no-install-recommends --reinstall build-essential
RUN apt-get install -yq --no-install-recommends libssl-dev file ninja-build
# RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install --upgrade pip
RUN apt-get install build-essential
RUN apt-get install ninja-build
#RUN python3 -m pip install cmake
#RUN python3 -m pip install meson ninja
#RUN apt-get purge --auto-remove cmake
RUN pip3 install aiohttp==3.8.1
RUN pip3 install APScheduler==4.0.0a2
RUN pip3 install Jinja2==3.0.3
RUN pip3 install pycryptodome==3.14.1
RUN pip3 install requests==2.26.0
RUN pip3 install sanic==21.12.1
# RUN pip3 install sanic==21.12.1 -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
RUN pip3 install uvloop==0.16.0
RUN pip3 install websockets==10.4
RUN pip3 install sanic_jwt==1.8.0
RUN pip3 install sanic_openapi==21.12.0
RUN pip3 install tortoise-orm==0.19.3
# RUN pip3 install aiohttp
# RUN pip3 install APScheduler
# RUN pip3 install Jinja2
# RUN pip3 install pycryptodome
# RUN pip3 install requests
# RUN pip3 install sanic
# RUN pip3 install uvloop
# RUN pip3 install websockets
# RUN pip3 install sanic_jwt
# RUN pip3 install sanic_openapi
# RUN pip3 install tortoise-orm
RUN pip3 install ruamel.yaml
RUN pip3 install qrcode
RUN pip3 install tzlocal
RUN pip3 install httpx
#RUN pip install --default-timeout=1000 git+https://github.com/skvark/opencv-python.git
#RUN pip3 install opencv-python-headless
#RUN pip3 install opencv-python-headless==4.5.3.56
# pip3 install opencv-contrib-python==4.5.3.56
RUN pip3 install fake-useragent
RUN pip3 install matplotlib
RUN pip3 install pyecharts
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /Rabbit
CMD python3 Rabbit.py