fix: edge hardening, rootless containers, fail-closed frontend mode
This commit is contained in:
parent
d903d0951f
commit
e82ce391f6
15 changed files with 260 additions and 31 deletions
|
|
@ -63,6 +63,11 @@ if [ ! -f "$REPO/.env" ]; then
|
|||
cp "$REPO/.env.example" "$REPO/.env"
|
||||
chown vscode:vscode "$REPO/.env" 2>/dev/null || true
|
||||
fi
|
||||
# Dev needs the Vite HMR server; the compose default is fail-closed preview.
|
||||
if ! grep -q "^FRONTEND_MODE=" "$REPO/.env" 2>/dev/null; then
|
||||
echo "FRONTEND_MODE=dev" >> "$REPO/.env"
|
||||
chown vscode:vscode "$REPO/.env" 2>/dev/null || true
|
||||
fi
|
||||
echo "--- Waiting for compose services ---"
|
||||
python3 - <<'EOF'
|
||||
import socket
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue