The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
prune unused dependencies and clear next build cache for docker
Francisco Mazzonie8237605a430
diff --git a/studio/Dockerfile b/studio/Dockerfileindex 84268438620..cfe843ec353 100644--- a/studio/Dockerfile+++ b/studio/Dockerfile@@ -14,13 +14,12 @@ RUN apt-get update && apt-get install -y \FROM base as builderWORKDIR /usr/src/app-# the following command is still unsupported for npm // https://github.com/vercel/turborepo/issues/1830-# RUN npm i -g turboCOPY package*.json .COPY turbo.json .COPY packages packagesCOPY studio studio# the following command is still unsupported for npm // https://github.com/vercel/turborepo/issues/1830+# RUN npm i -g turbo# RUN turbo prune --scope=studio --docker# RUN npm clean-install && npm cache clean --forceENTRYPOINT ["docker-entrypoint.sh"]@@ -30,20 +29,15 @@ COPY --from=builder /usr/src/app ./appWORKDIR ./appRUN npm clean-install && npm cache clean --forceEXPOSE 8082-# RUN npx turbo run dev --filter=studioCMD ["npx", "turbo", "run", "dev", "--filter=studio"]FROM builder as productionprepWORKDIR /appCOPY --from=builder /usr/src/app ./-RUN npm clean-install && npm cache clean --force && npx turbo run build --scope=studio --include-dependencies --no-deps && npm prune --production-# WORKDIR ./studio-# RUN npm prune --production-# EXPOSE 3000-# CMD ["npm", "run", "start"]+RUN npm clean-install && npm cache clean --force && npx turbo run build --scope=studio --include-dependencies --no-deps && rm -rf ./studio/.next/cache/webpack &&npm prune --production-FROM base as production-COPY --from=productionprep /app/studio ./studio+FROM node:16-slim as production+COPY --from=productionprep /app ./WORKDIR ./studioEXPOSE 3000-CMD ["npm", "run", "start"]\ No newline at end of file+CMD ["npm", "run","start"]\ No newline at end of file