Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildiagne committed Jan 5, 2020
1 parent ba0d3ce commit bdc8dd7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ app = flask.Flask(__name__)
@app.route('/')
def hello():
return 'Hello GPU!\n\n' + os.popen('nvidia-smi').read()

if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=80)
```

- `Dockerfile`
Expand All @@ -57,13 +54,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*

RUN pip3 install setuptools Flask gunicorn

WORKDIR /app

COPY main.py ./main.py

CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 main:app
CMD exec gunicorn --bind :80 --workers 1 --threads 8 main:app
```

- `kuda.yaml`
Expand All @@ -77,7 +75,7 @@ deploy:
dockerfile: ./Dockerfile
```
Running `kuda deploy` will then build and deploy the API which you can call via HTTP,
Running `kuda deploy` will then build and deploy the API which you can call,
for instance with [cURL](https://curl.haxx.se/):

```
Expand Down

0 comments on commit bdc8dd7

Please sign in to comment.