attstore / Makefile
dn-scribe's picture
fix: faster docker build
bb7c264
Raw History Blame Contribute Delete
1.41 kB
.PHONY: help docs docs-force clean-docs dev build run test
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
docs: ## Download documentation for local development
@bash scripts/download-docs.sh
docs-force: ## Force re-download documentation
@bash scripts/download-docs.sh --force
clean-docs: ## Remove downloaded documentation
@echo "Removing documentation..."
@rm -rf static/docs
@echo "✅ Documentation removed"
dev: docs ## Download docs and start development server
@echo "Starting development server..."
@python main.py
build: ## Build Docker image (with docs - slow)
@docker build -t attstore:latest .
build-dev: ## Build Docker image WITHOUT docs (fast, for development)
@docker build --build-arg BUILD_DOCS=false -t attstore:dev .
build-multiarch: ## Build multi-architecture image with docs
@docker buildx build --platform linux/amd64,linux/arm64 -t attstore:latest .
build-multiarch-dev: ## Build multi-architecture image WITHOUT docs (fast)
@docker buildx build --platform linux/amd64,linux/arm64 --build-arg BUILD_DOCS=false -t attstore:dev .
run: ## Run Docker container
@docker run -p 5003:5003 attstore:latest
run-dev: ## Run development Docker container (built without docs)
@docker run -p 5003:5003 attstore:dev
test: ## Run tests
@pytest