Skip to content
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
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
draft.toml
charts/
NOTICE
LICENSE
README.md
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:onbuild
ENV PORT 5000
EXPOSE 5000
ENTRYPOINT ["python"]
CMD ["app.py"]
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ def news():
elif request.method == 'GET':
return jsonify(getNews(request.args.get('category')))

app.run(debug=True)

app.run(host='0.0.0.0', debug=True, port=5000)
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,19 @@ All dependencies are listed in *requirements.txt* file.
```bash
$ python app.py
```
### Docker Install

1. Build

```bash
$ docker build -t inshorts .
```

2. Run

```bash
$ docker run -d -p 5000:5000 inshorts
```



1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ MarkupSafe==1.0
requests==2.18.4
urllib3>=1.23
Werkzeug==0.12.2
flask-cors