1 Star 1 Fork 1

周陆陈 / 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" ]
1
https://gitee.com/zhou-luchen/chen12306.git
git@gitee.com:zhou-luchen/chen12306.git
zhou-luchen
chen12306
12306
master

搜索帮助