-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
20 lines (18 loc) · 878 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.7-slim
LABEL maintainer="seekplum <1131909224m@sina.cn>"
ADD requirements/requirements.txt /tmp/requirements.txt
RUN set -xe && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone && \
sed -i -E -e 's/(deb|security).debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y git && \
pip install -r /tmp/requirements.txt -i https://mirrors.aliyun.com/pypi/simple && \
rm -f /tmp/requirements.txt
# 1024 * 1024 * 1024 * 50
RUN git config --global http.postBuffer 53687091200
RUN git config --global --add core.compression -1
RUN git config --global user.email 1131909224@qq.com
RUN git config --global user.name seekplum
ADD . /code
WORKDIR /code
CMD ["/bin/bash", "-c", "env && gunicorn -w 2 -t 60 -b :${SERVER_PORT} --log-level debug -k gevent wsgi:app"]