From bd9747fce18513b5aeb3e8696d1dbc5a4a44abf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sat, 27 Jun 2026 13:43:09 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20Dockerfile=20+=20app.run=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20managed=20k8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 +++++++++++++ app.py | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..29cab9b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY app.py . + +EXPOSE 5000 + +CMD ["python", "app.py"] diff --git a/app.py b/app.py index 30ea899..74f0236 100644 --- a/app.py +++ b/app.py @@ -11,3 +11,7 @@ def index(): @app.route("/health") def health(): return {"ok": True, "service": "contracts-flask"} + + +if __name__ == "__main__": + app.run(debug=False, host="0.0.0.0", port=5000)