areweplaying/Makefile
Harry Culpan 48e7acab83 Add CGO_ENABLED=0 to Linux cross-compile targets; add Dockerfile
CGO_ENABLED=0 ensures a fully static binary that runs in Alpine without
glibc. Dockerfile copies both binaries into Alpine, installs cronie for
the awp-cli cron job, and mounts runtime data (players.json, static/,
logs/) from the host at runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 20:33:55 -04:00

17 lines
357 B
Makefile

all: build
build:
templ generate
go build -o areweplaying cmd/web/*.go
go build -o awp-cli cmd/cli/*.go
linuxbuild:
templ generate
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o areweplaying.linux cmd/web/*.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o awp-cli.linux cmd/cli/*.go
clean:
rm -rf areweplaying
rm -rf areweplaying.*
test: