Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: add dependencies for arm64 docker build

Qiao Han2760183fa6d2
diff --git a/studio/Dockerfile b/studio/Dockerfile
index 570f6f3a239..8f2313645d0 100644
--- a/studio/Dockerfile
+++ b/studio/Dockerfile
@@ -22,6 +22,13 @@ RUN npx [email protected] prune --scope=studio --docker
FROM base as deps
COPY --from=turbo /app/out/json ./
COPY --from=turbo /app/out/package-lock.json ./
+# Install additional dependencies for arm64 build (required by bufferutil)
+ARG TARGETARCH
+RUN if [ "$TARGETARCH" = "arm64" ]; then \
+ apt-get update && apt-get install -y --no-install-recommends \
+ python3 \
+ build-essential \
+ && rm -rf /var/lib/apt/lists/*; fi
# No need to clean cache because production uses standalone build
RUN npm clean-install