/
githubmirror
/
12306
Обзор
Документация
Войти
/
githubmirror
/
12306
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Dockerfile
24 строки
778 B
tan
update Dockerfile file
10 янв 2019, 05:55
10 янв 2019, 05:55
9fa568e
Код
Авторство
О чём код?
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" ]