Skip to content

Commit 3f53895

Browse files
committed
Add watchfiles
1 parent 991a8d5 commit 3f53895

3 files changed

Lines changed: 131 additions & 2 deletions

File tree

Dockerfile.dev

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ ENV PATH="$FOLDER/.venv/bin:$PATH"
1717

1818
USER 1000:1000
1919

20-
CMD ["uv", "run", "python", "src/main.py"]
20+
RUN uv pip show --python .venv/bin/python watchfiles >/dev/null 2>&1 || \
21+
uv pip install --python .venv/bin/python watchfiles --link-mode=copy
22+
23+
CMD ["uv", "run", "watchfiles", "python", "src/main.py"]

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.11"
7-
dependencies = []
7+
dependencies = [
8+
"watchfiles>=1.1.1",
9+
]

0 commit comments

Comments
 (0)