mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 08:56:46 -04:00
chore: upgrade studio Docker image and turbo
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: configure aws credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
uses: aws-actions/configure-aws-credentials@v2
|
||||
with:
|
||||
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
|
||||
aws-region: us-east-1
|
||||
|
||||
Generated
+28
-28
@@ -26,7 +26,7 @@
|
||||
"prettier-plugin-sql-cst": "^0.5.0",
|
||||
"supabase": "^1.45.2",
|
||||
"ts-jest": "^27.1.3",
|
||||
"turbo": "^1.4.7"
|
||||
"turbo": "^1.10.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0 <19.0.0",
|
||||
@@ -40298,27 +40298,27 @@
|
||||
"integrity": "sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw=="
|
||||
},
|
||||
"node_modules/turbo": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo/-/turbo-1.9.9.tgz",
|
||||
"integrity": "sha512-+ZS66LOT7ahKHxh6XrIdcmf2Yk9mNpAbPEj4iF2cs0cAeaDU3xLVPZFF0HbSho89Uxwhx7b5HBgPbdcjQTwQkg==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo/-/turbo-1.10.3.tgz",
|
||||
"integrity": "sha512-U4gKCWcKgLcCjQd4Pl8KJdfEKumpyWbzRu75A6FCj6Ctea1PIm58W6Ltw1QXKqHrl2pF9e1raAskf/h6dlrPCA==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"bin": {
|
||||
"turbo": "bin/turbo"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"turbo-darwin-64": "1.9.9",
|
||||
"turbo-darwin-arm64": "1.9.9",
|
||||
"turbo-linux-64": "1.9.9",
|
||||
"turbo-linux-arm64": "1.9.9",
|
||||
"turbo-windows-64": "1.9.9",
|
||||
"turbo-windows-arm64": "1.9.9"
|
||||
"turbo-darwin-64": "1.10.3",
|
||||
"turbo-darwin-arm64": "1.10.3",
|
||||
"turbo-linux-64": "1.10.3",
|
||||
"turbo-linux-arm64": "1.10.3",
|
||||
"turbo-windows-64": "1.10.3",
|
||||
"turbo-windows-arm64": "1.10.3"
|
||||
}
|
||||
},
|
||||
"node_modules/turbo-darwin-64": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.9.9.tgz",
|
||||
"integrity": "sha512-UDGM9E21eCDzF5t1F4rzrjwWutcup33e7ZjNJcW/mJDPorazZzqXGKEPIy9kXwKhamUUXfC7668r6ZuA1WXF2Q==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.10.3.tgz",
|
||||
"integrity": "sha512-IIB9IomJGyD3EdpSscm7Ip1xVWtYb7D0x7oH3vad3gjFcjHJzDz9xZ/iw/qItFEW+wGFcLSRPd+1BNnuLM8AsA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -40329,9 +40329,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-darwin-arm64": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.9.9.tgz",
|
||||
"integrity": "sha512-VyfkXzTJpYLTAQ9krq2myyEq7RPObilpS04lgJ4OO1piq76RNmSpX9F/t9JCaY9Pj/4TL7i0d8PM7NGhwEA5Ag==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.10.3.tgz",
|
||||
"integrity": "sha512-SBNmOZU9YEB0eyNIxeeQ+Wi0Ufd+nprEVp41rgUSRXEIpXjsDjyBnKnF+sQQj3+FLb4yyi/yZQckB+55qXWEsw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -40342,9 +40342,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-linux-64": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.9.9.tgz",
|
||||
"integrity": "sha512-Fu1MY29Odg8dHOqXcpIIGC3T63XLOGgnGfbobXMKdrC7JQDvtJv8TUCYciRsyknZYjyyKK1z6zKuYIiDjf3KeQ==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.10.3.tgz",
|
||||
"integrity": "sha512-kvAisGKE7xHJdyMxZLvg53zvHxjqPK1UVj4757PQqtx9dnjYHSc8epmivE6niPgDHon5YqImzArCjVZJYpIGHQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -40355,9 +40355,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-linux-arm64": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.9.9.tgz",
|
||||
"integrity": "sha512-50LI8NafPuJxdnMCBeDdzgyt1cgjQG7FwkyY336v4e95WJPUVjrHdrKH6jYXhOUyrv9+jCJxwX1Yrg02t5yJ1g==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.10.3.tgz",
|
||||
"integrity": "sha512-Qgaqln0IYRgyL0SowJOi+PNxejv1I2xhzXOI+D+z4YHbgSx87ox1IsALYBlK8VRVYY8VCXl+PN12r1ioV09j7A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -40368,9 +40368,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-windows-64": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.9.9.tgz",
|
||||
"integrity": "sha512-9IsTReoLmQl1IRsy3WExe2j2RKWXQyXujfJ4fXF+jp08KxjVF4/tYP2CIRJx/A7UP/7keBta27bZqzAjsmbSTA==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.10.3.tgz",
|
||||
"integrity": "sha512-rbH9wManURNN8mBnN/ZdkpUuTvyVVEMiUwFUX4GVE5qmV15iHtZfDLUSGGCP2UFBazHcpNHG1OJzgc55GFFrUw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -40381,9 +40381,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-windows-arm64": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.9.9.tgz",
|
||||
"integrity": "sha512-CUu4hpeQo68JjDr0V0ygTQRLbS+/sNfdqEVV+Xz9136vpKn2WMQLAuUBVZV0Sp0S/7i+zGnplskT0fED+W46wQ==",
|
||||
"version": "1.10.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.10.3.tgz",
|
||||
"integrity": "sha512-ThlkqxhcGZX39CaTjsHqJnqVe+WImjX13pmjnpChz6q5HHbeRxaJSFzgrHIOt0sUUVx90W/WrNRyoIt/aafniw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
"prettier-plugin-sql-cst": "^0.5.0",
|
||||
"supabase": "^1.45.2",
|
||||
"ts-jest": "^27.1.3",
|
||||
"turbo": "^1.4.7"
|
||||
"turbo": "^1.10.3"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
16
|
||||
18
|
||||
|
||||
+12
-6
@@ -1,22 +1,27 @@
|
||||
# To be run in the root of the turbo monorepo
|
||||
# NOTE: It's highly raccomended to use the new builder, Buildkit. https://docs.docker.com/build/buildkit/
|
||||
# NOTE: It's highly recommended to use the new builder, Buildkit. https://docs.docker.com/build/buildkit/
|
||||
## USAGE:
|
||||
# Build: docker buildx build --target production -t supabase/studio:latest .
|
||||
# Build: docker build . -f studio/Dockerfile --target production -t studio:latest
|
||||
# Run: docker run -p 3000:3000 supabase/studio
|
||||
# Deploy: docker push supabase/studio:latest
|
||||
# Clean build:
|
||||
# docker buildx build --target production --no-cache -t supabase/studio:latest .
|
||||
# docker builder prune
|
||||
# docker build . -f studio/Dockerfile --target production -t studio:latest --no-cache
|
||||
|
||||
FROM node:16-slim as base
|
||||
FROM node:18-slim as base
|
||||
|
||||
# Fixes issues with Sentry CLI and SSL certificates during build
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install -y ca-certificates && \
|
||||
update-ca-certificates
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Prune unneeded dependencies with turbo (from apps/ for example)
|
||||
FROM base as turbo
|
||||
COPY . .
|
||||
# Upstream bug: https://github.com/vercel/turbo/issues/3570
|
||||
RUN npx turbo@1.7.0 prune --scope=studio --docker
|
||||
|
||||
RUN npx turbo@1.10.3 prune --scope=studio --docker
|
||||
|
||||
# Install dev dependencies (only if needed)
|
||||
FROM base as deps
|
||||
@@ -41,6 +46,7 @@ CMD ["npm", "run", "dev:studio"]
|
||||
|
||||
# Compile NextJS
|
||||
FROM dev as builder
|
||||
|
||||
RUN npx turbo run build --scope=studio --include-dependencies --no-deps
|
||||
|
||||
# Copy only compiled code and dependencies
|
||||
|
||||
Reference in New Issue
Block a user