aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Grote2023-04-12 16:28:16 +0200
committerMichael Grote2023-04-12 16:28:16 +0200
commit8a7a5ecd224a291f6b1ad95d239051eccad8e1cf (patch)
tree694ea20038d22dd0835e9062d9aa4671731a477c
parentcc5e40b5f5adbd9270e41b96eeb76710ac6f8f2a (diff)
set port explicit
-rw-r--r--Dockerfile2
-rw-r--r--app.py5
2 files changed, 6 insertions, 1 deletions
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