From 8a7a5ecd224a291f6b1ad95d239051eccad8e1cf Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 12 Apr 2023 16:28:16 +0200 Subject: set port explicit --- Dockerfile | 2 +- app.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9e07041..e29bb9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/app.py b/app.py index 08874b9..f3ae6a7 100644 --- a/app.py +++ b/app.py @@ -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 -- cgit v1.2.3