Skip to content

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

Add Healthcheck

Ruggero Tomasellid8efa900d29b
diff --git a/studio/Dockerfile b/studio/Dockerfile
index e9614bb583f..32fe1d0f128 100644
--- a/studio/Dockerfile
+++ b/studio/Dockerfile
@@ -61,4 +61,5 @@ COPY --from=turbo /app/out/full/studio /app/studio
COPY --from=productionprep /app/studio/.next /app/studio/.next
WORKDIR /app/studio
EXPOSE 3000
+HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"
CMD ["npm", "run", "start"]