From 17a96da0783fc39378e1ceeca5292d32879a76e8 Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Fri, 27 Feb 2026 14:02:22 +0100 Subject: [PATCH] feat: add docker run target and configure app for containerization Co-authored-by: Antigravity --- CLAUDE.md | 3 +-- Makefile | 6 +++++- app.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 620d72c..6a1548c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,5 +28,4 @@ Once a tech stack is chosen and implementation begins, update this file with: ## Git Commits -When making git commits, always append the following co-author trailer to the end of the commit message to indicate AI assistance: -`Co-authored-by: Antigravity ` +When making git commits, always append yourself as co-author trailer to the end of the commit message to indicate AI assistance \ No newline at end of file diff --git a/Makefile b/Makefile index e8e4e1a..98df6c1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help fees match web image +.PHONY: help fees match web image run export PYTHONPATH := scripts:$(PYTHONPATH) VENV := .venv @@ -14,6 +14,7 @@ help: @echo " make match - Match Fio bank payments against expected attendance fees" @echo " make web - Start a dynamic web dashboard locally" @echo " make image - Build an OCI container image" + @echo " make run - Run the built Docker image locally" fees: $(PYTHON) $(PYTHON) scripts/calculate_fees.py @@ -26,3 +27,6 @@ web: $(PYTHON) image: docker build -t fuj-management:latest -f build/Dockerfile . + +run: + docker run -it --rm -p 5001:5001 fuj-management:latest diff --git a/app.py b/app.py index 5630a61..3681c35 100644 --- a/app.py +++ b/app.py @@ -50,4 +50,4 @@ def fees(): ) if __name__ == "__main__": - app.run(debug=True, port=5001) + app.run(debug=True, host='0.0.0.0', port=5001)