Skip to content

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

fix: Update the studio dockerfile with the new folder structure (#19179)

Ivan Vasilov64a766a5fb2c
diff --git a/.dockerignore b/.dockerignore
index ff561a782b4..247ce6b2724 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -3,7 +3,6 @@
.git
.github
about
-apps
docker
examples
i18n
@@ -14,7 +13,7 @@ tests
**/.next
.vercel
-.env.*
+**/.env.*
.dockerignore
-studio/Dockerfile
+apps/studio/Dockerfile
diff --git a/apps/studio/Dockerfile b/apps/studio/Dockerfile
index 0f1ca272a67..ad0012db829 100644
--- a/apps/studio/Dockerfile
+++ b/apps/studio/Dockerfile
@@ -52,10 +52,10 @@ RUN npx turbo run build --scope=studio --include-dependencies --no-deps
# Copy only compiled code and dependencies
FROM base as production
-COPY --from=builder /app/studio/public ./studio/public
-COPY --from=builder /app/studio/.next/standalone ./
-COPY --from=builder /app/studio/.next/static ./studio/.next/static
+COPY --from=builder /app/apps/studio/public ./apps/studio/public
+COPY --from=builder /app/apps/studio/.next/standalone ./
+COPY --from=builder /app/apps/studio/.next/static ./apps/studio/.next/static
EXPOSE 3000
ENTRYPOINT ["docker-entrypoint.sh"]
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 ["node", "studio/server.js"]
+CMD ["node", "apps/studio/server.js"]