set port explicit

This commit is contained in:
Michael Grote 2023-04-12 16:28:16 +02:00
parent cc5e40b5f5
commit 8a7a5ecd22
2 changed files with 6 additions and 1 deletions

View file

@ -19,4 +19,4 @@ RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD [ "python3", "-m" , "flask", "run"]
CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"]

5
app.py
View file

@ -31,3 +31,8 @@ if __name__ == '__main__':
# curl -X POST -F 'file=@/path/to/file' http://localhost:5000/upload
# curl http://localhost:5000/files
# farben im putput weg
# wsgi server