first template launch (#2)

Co-authored-by: Michael DiLeo <michael.dileo@oakstreethealth.com>
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2025-08-14 00:11:50 +00:00
parent 12eadac926
commit 38c707885a
11 changed files with 902 additions and 23 deletions

14
build.sh Normal file → Executable file
View File

@@ -3,10 +3,22 @@ set -e
REGISTRY="registry.keyboardvagabond.com"
VERSION="latest"
PLATFORM="linux/arm64"
IMAGE_NAME="keyboard-vagabond-landing"
IMAGE_NAME="keyboard-vagabond-web"
echo "Building Keyboard Vagabond Landing Page..."
# Ensure dist/ folder exists with optimized files
if [ ! -d "dist" ]; then
echo "⚠️ No dist/ folder found. Creating optimized build first..."
if [ -f "package.json" ]; then
npm run dist-minified
else
echo "❌ Error: No package.json found. Run 'npm install' first."
exit 1
fi
echo "✅ Optimized build created in dist/"
fi
docker build \
--platform $PLATFORM \
--tag $REGISTRY/library/$IMAGE_NAME:$VERSION \