Skip to content

Commit

Permalink
修改Dockerfile启动不能直接启动,而是需要docker run dockerticket python run.py &, 实现在…
Browse files Browse the repository at this point in the history
…container启动时候就运行
  • Loading branch information
PKzhilong committed Jan 4, 2019
1 parent fa85652 commit 9b11f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ RUN pip install --no-cache-dir -r requirements.txt
#EXPOSE 5010

WORKDIR /usr/src/app/
CMD [ "python", "run.py" ]
#CMD [ "python", "run.py" ]
ENTRYPOINT [ "python", "run.py" ]
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
- 由于新增对时功能,请务必用sudo,sudo,sudo 执行,否则会报权限错误,windows打开ide或者cmd请用管理员身份执行python run.py,不需要加sudo
- 如果你的服务器安装了docker,那么就可以docker启动
- 1、docker build -t dockerticket .
- 2、docker run dockerticket python run.py &
- 3、本来是可以直接Dockerfile启动的,不知道为毛启动不了,如果有大佬看到问题所在,欢迎提出
- 2、~~docker run dockerticket python run.py &~~
- 3、~~本来是可以直接Dockerfile启动的,不知道为毛启动不了,如果有大佬看到问题所在,欢迎提出~~
- 4、docker run -d --name 12306-ticket dockerticket

- 目录对应说明
- agency - cdn代理
Expand Down

0 comments on commit 9b11f95

Please sign in to comment.