You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
443 B
10 lines
443 B
FROM python:3
|
|
ENV PYTHONUNBUFFERED 1
|
|
WORKDIR /code/DjangoBlog/
|
|
RUN apt-get install default-libmysqlclient-dev -y && \
|
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
|
ADD requirements.txt requirements.txt
|
|
RUN pip install -Ur requirements.txt -i https://mirrors.aliyun.com/pypi/simple && \
|
|
pip install gunicorn[gevent] -i https://mirrors.aliyun.com/pypi/simple
|
|
ADD . .
|
|
#ENTRYPOINT ["/code/DjangoBlog/bin/docker_start.sh"] |