Add Docker build script and README

Multi-stage Dockerfile runs the tests, builds a static binary, and ships
it on Alpine with git for GitHub clones.
This commit is contained in:
Andy Dixon
2026-02-01 21:48:24 +00:00
parent 59d7e99e0b
commit 981ec88f43
4 changed files with 53 additions and 0 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# Builds the CodeNavigator Docker image (tests run inside the build).
# Usage: ./build.sh [image-tag] default tag: codenavigator:latest
set -eu
cd "$(dirname "$0")"
tag="${1:-codenavigator:latest}"
docker build -t "$tag" .
echo "Built $tag. Run: docker run --rm -p 4177:4177 $tag"