mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
- Add docker/sandbox/entrypoint.sh to auto-copy /ui-dist → internal/server/dist/ when missing, fixing the gitignore regression for all Docker workflows - Add scripts/_sandbox_common.sh with shared SCRIPT_DIR, PROJECT_ROOT, COMPOSE_FILE, and require_docker() function - Refactor all 5 sandbox scripts to source _sandbox_common.sh - Use YAML extension fields (x-sandbox-common) in docker-compose.sandbox.yml to eliminate duplicated service config - Break sandbox_playground_up.sh one-liner into readable steps, add skillshare-ui alias and init hint - Change test.sh to use `make build` for placeholder consistency
10 lines
395 B
Bash
Executable File
10 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
# Docker entrypoint: ensure pre-built frontend assets are available for go:embed.
|
|
# The host volume mount (.:/workspace) may not include internal/server/dist/
|
|
# (gitignored), so we copy from the Docker-built /ui-dist if needed.
|
|
if [ -d /ui-dist ] && [ ! -f internal/server/dist/index.html ]; then
|
|
mkdir -p internal/server/dist
|
|
cp -r /ui-dist/* internal/server/dist/
|
|
fi
|
|
exec "$@"
|