-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (32 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
46 lines (32 loc) · 764 Bytes
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
FROM python:3.9.10-alpine
RUN apk --update add --no-cache --virtual .build-deps \
g++ \
build-base \
postgresql-dev
## install pymysql
RUN pip install pymysql
## install flask
RUN pip install flask
## install pandas
RUN pip install pandas
## install requests
RUN pip install requests
## install redis
RUN pip install redis
## upgrade pip
RUN pip install --upgrade pip
RUN apk --update add --no-cache \
zlib-dev \
libffi-dev
## install Scrapy
RUN pip install Scrapy
## install PyExecJS
RUN pip install PyExecJS
## install grequests
RUN pip install grequests
## install psycopg2
RUN pip install psycopg2
##timezone Shanghai
RUN set -ex; \
apk add --no-cache tzdata
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime