代码拉取完成,页面将自动刷新
FROM ubuntu:16.04
ENV LANG C.UTF-8
ENV TZ=Asia/Shanghai
# Install required packages and remove the apt packages cache when done.
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list && \
apt-get clean && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libmysqlclient-dev \
nginx \
python3-dateutil \
tzdata && \
dpkg-reconfigure --frontend noninteractive tzdata
WORKDIR /opt/workspace/xapitest/
COPY xapitest.sh .
COPY manage.py .
COPY uwsgi.ini .
COPY requirements.txt .
RUN pip3 install -r ./requirements.txt -i \
https://pypi.douban.com/simple \
--default-timeout=100
EXPOSE 5000
CMD bash ./xapitest.sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。