-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1.24 KB
/
Makefile
File metadata and controls
41 lines (31 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
default: help
.PHONY: help
help: # Show help for each of the Makefile recipes.
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
.PHONY: dev
dev: # Run development server with hot-reload.
npm run dev
.PHONY: dev-safe
dev-safe: # Run dev server with isolated environment (safer).
env -i PATH="$$PATH" HOME="$$HOME" ANTHROPIC_API_KEY="$$ANTHROPIC_API_KEY" npm run dev
.PHONY: build
build: # Build the project.
npm run build
.PHONY: test
test: # Run tests.
npm test
.PHONY: lint
lint: # Run linter.
npm run lint
.PHONY: docker-build
docker-build: # Build the Docker image.
docker build -t claude-code-agent .
.PHONY: docker-run
docker-run: docker-build # Build and run the Docker container.
docker run --rm -it --init -v $(PWD)/.env:/app/.env:ro -v $(PWD)/workspace:/workspace -p 2222:2222 claude-code-agent
.PHONY: docker-build-base
docker-build-base: # Build the base image (tools only, no app code).
docker build -f Dockerfile.base -t dwmkerr/claude-code-agent-base:latest .
.PHONY: docker-push-base
docker-push-base: docker-build-base # Build and push base image to Docker Hub.
docker push dwmkerr/claude-code-agent-base:latest