代码拉取完成,页面将自动刷新
FROM python:3.6
ENV PYTHONUNBUFFERED 1
#RUN echo "http://mirrors.aliyun.com/alpine/v3.8/main/" > /etc/apk/repositories
#RUN echo "http://mirrors.aliyun.com/alpine/v3.8/community/" >> /etc/apk/repositories
RUN apt-get upgrade
RUN apt-get update
RUN apt-get install -y gcc make python-dev libc-dev libxml2-dev libssl-dev libffi-dev
WORKDIR /app
RUN mkdir /app/log
RUN touch /app/log/uwsgi.log
RUN touch /app/log/uwsgi.pid
#RUN pip install pipenv -i https://pypi.douban.com/simple
COPY xjl/paper_search/requirements.txt /app/requirements.txt
COPY xjl/paper_search/Pipfile /app/Pipfile
COPY xjl/paper_search/Pipfile.lock /app/Pipfile.lock
COPY xjl/paper_search/uwsgi.ini /app/uwsgi.ini
#RUN apk upgrade musl
#RUN pip install pipenv -i https://pypi.douban.com/simple
#RUN pipenv install -r requirements.txt
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
RUN pip config set install.trusted-host mirrors.aliyun.com
RUN pip install -r requirements.txt
RUN virtualenv --system-site-package /app/Django-venv
COPY xjl/paper_search/paper_search/* /app/Django/paper_search/
COPY xjl/paper_search/esearch/* /app/Django/esearch/
COPY xjl/paper_search/manage.py /app/Django/manage.py
COPY xjl/paper_search/uwsgi.ini /app/uwsgi.ini
COPY xjl/paper_search/start.sh /app/start.sh
EXPOSE 8003
RUN chmod +x /app/start.sh
EXPOSE 9003
WORKDIR /app/Django
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。