The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Install python and git when building the Docker image (#21606)
Ivan Vasilov5b4f27b611c6
diff --git a/apps/studio/Dockerfile b/apps/studio/Dockerfileindex 811d9bb37cf..c56fbd311c0 100644--- a/apps/studio/Dockerfile+++ b/apps/studio/Dockerfile@@ -13,9 +13,13 @@ FROM node:18-slim as base# Fixes issues with Sentry CLI and SSL certificates during build# TODO: Git is added because it's needed to build libpg, remove it once they publish a binary on the S3 bucketRUN apt-get update -qq && \- apt-get install -y git ca-certificates && \- rm -rf /var/lib/apt/lists/* && \- update-ca-certificates+ apt-get install -y --no-install-recommends \+ git \+ python3 \+ ca-certificates \+ build-essential && \+ rm -rf /var/lib/apt/lists/* && \+ update-ca-certificatesWORKDIR /app@@ -29,14 +33,7 @@ RUN npx [email protected] prune --scope=studio --dockerFROM base as depsCOPY --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 buildRUN npm clean-install