set port explicit
This commit is contained in:
parent
cc5e40b5f5
commit
8a7a5ecd22
2 changed files with 6 additions and 1 deletions
|
@ -19,4 +19,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD [ "python3", "-m" , "flask", "run"]
|
CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"]
|
||||||
|
|
5
app.py
5
app.py
|
@ -31,3 +31,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# curl -X POST -F 'file=@/path/to/file' http://localhost:5000/upload
|
# curl -X POST -F 'file=@/path/to/file' http://localhost:5000/upload
|
||||||
# curl http://localhost:5000/files
|
# curl http://localhost:5000/files
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# farben im putput weg
|
||||||
|
# wsgi server
|
||||||
|
|
Reference in a new issue