ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
fix(docker): ship the agent installers in the panel image
Juan Denis133428795769
diff --git a/.dockerignore b/.dockerignoreindex fd03e913..1aaae65c 100644--- a/.dockerignore+++ b/.dockerignore@@ -4,7 +4,11 @@# file the context is ~750 MB of node_modules/.git/venvs — and the build fails# outright on the broken symlink at backend/.venv-wsl/lib64.#-# The Dockerfile only needs: frontend/ (sources + package*.json), backend/, VERSION.+# The Dockerfile needs: frontend/ (sources + package*.json), backend/, VERSION,+# and scripts/install.sh + scripts/install.ps1 (the panel serves those two over+# HTTP for fleet enrollment). Keep this list honest — it read "only frontend,+# backend, VERSION" while the agent installers were being served from disk, and+# that wrong-but-authoritative comment is why nobody noticed they never shipped.## NOTE: do NOT add `!exception` patterns here. A single negation makes Docker# descend into every excluded directory (a nested file might be re-included),diff --git a/Dockerfile b/Dockerfileindex e4529ded..a5394d2b 100644--- a/Dockerfile+++ b/Dockerfile@@ -156,6 +156,17 @@ COPY --chown=serverkit:serverkit backend/ ./backend/# reports its real version in containers instead of the unknown-version fallbackCOPY --chown=serverkit:serverkit VERSION ./VERSION+# Ship the fleet-agent installers. The panel serves these over HTTP at+# /api/v1/servers/install.sh and /install.ps1, reading them off its own disk at+# <tree root>/scripts — which is /app/scripts here. They were missing from the+# image entirely, so every containerised panel answered the enrollment one-liner+# its own UI prints with a 404 and no server could ever join the fleet (#101).+#+# Only these two files: both are standalone (they source nothing from+# scripts/lib), so the rest of scripts/ — lib, keys, the test harnesses,+# stage-remote.sh — stays out of the image where it belongs.+COPY --chown=serverkit:serverkit scripts/install.sh scripts/install.ps1 ./scripts/+# Copy built frontend from Stage 1COPY --from=frontend-builder --chown=serverkit:serverkit /app/frontend/dist ./frontend/dist