chore(make): add uv --active and specify port

This commit is contained in:
2026-04-12 11:11:05 +02:00
parent ac2f31576f
commit 416dc2673b
2 changed files with 13 additions and 8 deletions
+5 -4
View File
@@ -6,11 +6,12 @@ ifeq (, $(shell which uv))
UV ?= python3 -m uv
endif
RUFF ?= $(UV) run ruff
TY ?= $(UV) run ty
RUFF ?= $(UV) run --active ruff
TY ?= $(UV) run --active ty
DOCKER ?= docker
DOCKER_TAG ?= localhost/stapler:latest
TOKEN ?= secret
PORT ?= 8080
# DOCS
@@ -31,7 +32,7 @@ print-%:
# FILES
.venv: uv.lock
@$(UV) sync
@$(UV) sync --active
# TOOLS
@@ -61,7 +62,7 @@ docker-build: ## docker build
.PHONY: docker-run
docker-run: docker-build ## docker run
@$(DOCKER) run -it -p 8080:8080 -v ./data:/data $(DOCKER_TAG) --token $(TOKEN)
@$(DOCKER) run -it -p $(PORT):8080 -v ./data:/data $(DOCKER_TAG) --token $(TOKEN)
# ACTIONS