From 9f4d38a1fe083ad7819cbfe9a6aff1907a50ce8f Mon Sep 17 00:00:00 2001 From: eka Date: Sun, 1 Mar 2026 10:53:48 +0500 Subject: [PATCH] Fix port: use 5000 instead of 5002 in app.py and values --- Dockerfile | 4 ++-- helm/sigra/values.yaml | 2 +- src/app.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ea5f60..c18ea49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ COPY src /app ENV FLASK_APP=app.py ENV FLASK_RUN_HOST=0.0.0.0 -ENV FLASK_RUN_PORT=5002 +ENV FLASK_RUN_PORT=5000 -EXPOSE 5002 +EXPOSE 5000 CMD ["python", "app.py"] diff --git a/helm/sigra/values.yaml b/helm/sigra/values.yaml index 35999de..3d0e8a3 100644 --- a/helm/sigra/values.yaml +++ b/helm/sigra/values.yaml @@ -7,7 +7,7 @@ image: service: type: ClusterIP - port: 5002 + port: 5000 ingress: enabled: true diff --git a/src/app.py b/src/app.py index b0ee6ab..02382c4 100644 --- a/src/app.py +++ b/src/app.py @@ -73,4 +73,5 @@ def edit_question(cat, q): return render_template('edit.html', question=question, cat=cat, q=q) if __name__ == '__main__': - app.run(debug=True, port=5002) + port = int(os.environ.get('FLASK_RUN_PORT', 5000)) + app.run(debug=True, host='0.0.0.0', port=port)