代码拉取完成,页面将自动刷新
# 基于镜像基础
FROM python:3.7
RUN apt update
RUN apt install -y libgl1-mesa-glx
RUN /usr/local/bin/python -m pip install pip==21.0.1
#RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 添加虚拟临时目录
VOLUME /tmp
#指定工作目录
WORKDIR /app
ADD ./ ./
#创建挂载点
#VOLUME ["/home/alex/python_project/trition_server_client/input","/input"]
# 安装所需的包
COPY requirements.txt ./
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir -r requirements.txt
RUN chmod -x ./app.py
#ENTRYPOINT ["/bin/bash"]
#CMD ["python", "client.py"] && ["python", "detect_spider.py"]
#CMD ["spider-start.sh"]
CMD ["python", "./app.py"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。