Add microapp platform scaffold

This commit is contained in:
Ruslan Bakiev
2026-03-23 11:47:14 +07:00
parent 3d7e963087
commit d4fc4f66cc
11 changed files with 544 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -eu
IMAGE_NAME="${IMAGE_NAME:-clientflow/microapp-runtime}"
APP_DIR="${APP_DIR:-$(pwd)/microapps/templates/pocketbase-deno-dashboard}"
ALLOW_NET="${ALLOW_NET:-127.0.0.1,localhost}"
docker run \
--rm \
--runtime=runsc \
--memory=256m \
--cpus=0.5 \
--pids-limit=128 \
-e APP_DIR=/workspace/app \
-e ALLOW_NET="$ALLOW_NET" \
-v "$APP_DIR:/workspace/app:ro" \
"$IMAGE_NAME"