diff options
| author | Michael Grote | 2023-04-12 16:28:16 +0200 |
|---|---|---|
| committer | Michael Grote | 2023-04-12 16:28:16 +0200 |
| commit | 8a7a5ecd224a291f6b1ad95d239051eccad8e1cf (patch) | |
| tree | 694ea20038d22dd0835e9062d9aa4671731a477c | |
| parent | cc5e40b5f5adbd9270e41b96eeb76710ac6f8f2a (diff) | |
set port explicit
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | app.py | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -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"] @@ -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 |