-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
64 lines (59 loc) · 1.3 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM alpine:3.18
LABEL MAINTAINER="Ahmed Saleh <[email protected]>"
WORKDIR /var/www/
ENV PYCURL_SSL_LIBRARY=openssl
ENV PACKAGES="\
dumb-init \
musl \
libc6-compat \
linux-headers \
build-base \
bash \
git \
ca-certificates \
freetype \
libgfortran \
libgcc \
libstdc++ \
openblas \
libffi-dev \
libcurl \
curl-dev \
"
ENV PYTHON_PACKAGES="\
calplot==0.1.7.5 \
plotly-calplot==0.1.16 \
bcrypt==3.1.6 \
Flask==2.3.2 \
flask-restful==0.3.7 \
flask_cors==3.0.9 \
Jinja2==3.1.2 \
gunicorn==20.1.0 \
python-dotenv==0.19.1 \
pymongo==4.2.0 \
gevent==23.7.0 \
SQLAlchemy==2.0.19 \
flask_jwt==0.3.2 \
flask_mail==0.9.1 \
requests==2.21.0 \
plotly==5.8.0 \
pytest==6.2.2 \
black==19.3b0 \
flake8==3.7.7 \
pdoc3==0.6.2 \
cx-Oracle==7.1.3 \
google-auth==1.6.3 \
pycurl==7.45.2 \
dnspython==2.4.1 \
calmap==0.0.11 \
redis==4.3.4 \
sentry-sdk[flask] \
"
RUN apk add --no-cache python3-dev py-pip\
&& apk add --no-cache $PACKAGES \
&& apk add build-base openblas-dev freetype-dev pkgconfig gfortran \
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install --upgrade pip \
&& pip3 install --no-cache-dir $PYTHON_PACKAGES \
&& pip3 install --no-cache-dir --upgrade pandas==2.0.0 \
&& rm -rf /var/cache/apk/*