Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

refactor docker images: add Dockerfile_topspeed #654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile_topspeed
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#����
FROM registry.cn-beijing.aliyuncs.com/zhangerling/12306_docker_accelerate:last
#�Ϻ�
#FROM registry.cn-shanghai.aliyuncs.com/zhangerling/12306_docker_accelerate:last
#����
#FROM registry.cn-shenzhen.aliyuncs.com/zhangerling/12306_docker_accelerate:last

COPY ./ /usr/src/app

CMD [ "sh", "-c", "python run.py c && python run.py r" ]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
- 请确认你安装的docker-compose版本为1.23.2及以上: `docker-compose -v`
- 请根据自己需要修改好配置文件:`TickerConfig.py`
- 请修改配置文件`TickerConfig.py`中的变量`AUTO_CODE_TYPE`和`HOST`,`AUTO_CODE_TYPE`改为`3`, HOST改为`"captcha:80"`(这里很重要,这是本地打码服务器的配置)
- 阿里云镜像加速构建:(可选)
- 请修改`docker-compose.yml`第8行`Dockerfile37`为`Dockerfile_topspeed` 此文件中镜像加速地址有北京、上海、深圳,节点自选
- 运行命令:
- 开始抢票:`docker-compose up --build -d`
- 停止抢票:`docker-compose down`
Expand Down
5 changes: 4 additions & 1 deletion Update.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,7 @@

- 2019.09.18更新
- 修改下单问题
- 优化车次打印
- 优化车次打印

- 2019/12/28更新
- 新增通过阿里云镜像自动构建`Dockerfile37`的方式,创建docker镜像