Skip to content

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.

Build the frontend stage natively in multi-arch Docker builds

Juan Denis783b0876bd95
diff --git a/Dockerfile b/Dockerfile
index 0a03a0ec..02436ab5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,10 @@
# ============================================
# Stage 1: Build Frontend
-FROM node:20-alpine AS frontend-builder
+# --platform=$BUILDPLATFORM: dist/ is static JS/CSS (arch-independent), so this
+# stage always runs natively on the build machine — never under QEMU, where an
+# emulated `npm ci` takes 20-40 min (or hangs) during multi-arch release builds.
+FROM --platform=$BUILDPLATFORM node:20-alpine AS frontend-builder
WORKDIR /app/frontend