Skip to content

Commit

Permalink
Merge pull request #18 from xiyangxixian/dev
Browse files Browse the repository at this point in the history
增加 docker file
  • Loading branch information
xiyangxixian authored Nov 18, 2018
2 parents fdaeee9 + 95518e0 commit a7a17d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM centos:7
MAINTAINER becivells <[email protected]>

RUN yum install -y epel-release && yum install -y python-pip git

RUN git clone https://github.com/xiyangxixian/soar-web.git /opt/soar-web
RUN cd /opt/soar-web && pip install -r requirement.txt
RUN chmod -R 755 /opt/soar-web
EXPOSE 5077
CMD ["python","/opt/soar-web/soar-web.py"]
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ Linux or Mac: bash run.sh
```

## docker 支持
地址:https://hub.docker.com/r/guoyahao/soar-web/
地址:https://hub.docker.com/r/becivells/soar-web/
**Dockerfile 见项目文件夹 dockerfile/dev**
```
docker pull guoyahao/soar-web
docker run -d --name soar-web -p 5077:5077 guoyahao/soar-web
docker pull becivells/soar-web
docker run -d --name soar-web -p 5077:5077 becivells/soar-web
```

## 访问
Expand Down

0 comments on commit a7a17d0

Please sign in to comment.