1 Star 0 Fork 1

vkkevin-github-image/12306

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 778 Bytes
一键复制 编辑 原始数据 按行查看 历史
tan 提交于 2019-01-10 10:55 . update Dockerfile file
FROM python:2.7.15
WORKDIR /usr/src/app
ADD . /usr/src/app
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Asia/Shanghai
## install python requirements
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider --no-cache-dir -r requirements.txt
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
## install ntpdate, not accept but saving code
#RUN echo 'deb http://mirrors.163.com/debian/ jessie main non-free contrib \
# deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib \
# deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib' > /etc/apt/sources.list \
# && apt-get update\
# && apt-get install ntpdate -y \
#EXPOSE 5010
CMD [ "python", "run.py" ]
#ENTRYPOINT [ "python", "run.py" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vkkevin-github-image/12306.git
git@gitee.com:vkkevin-github-image/12306.git
vkkevin-github-image
12306
12306
master

搜索帮助