fix: Dockerfile + app.run для managed k8s

This commit is contained in:
2026-06-27 13:43:09 +04:00
parent 1de550b767
commit bd9747fce1
2 changed files with 17 additions and 0 deletions
+13
View File
@@ -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"]
+4
View File
@@ -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)