mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
Aligns with our backend and updates to the latest LTS version of Node. Vercel already supports Node 26, so we can switch the Vercel configuration as well, but that shouldn't need immediate coordination as part of the deployment. To prevent errors on Vercel builds, we are using `>=24` in the `package.json`, so this can be deployed on 24.x and 26.x. Once all Vercel deployments are switched to 26.x, we can pin this to 26. The pnpm bump lives in a separate PR. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
35 lines
1.0 KiB
Docker
35 lines
1.0 KiB
Docker
# Runner for /test-the-docs: executes MDX fences inside the container.
|
|
FROM node:26-bookworm-slim
|
|
|
|
ARG TARGETARCH
|
|
ARG SUPABASE_CLI_VERSION=2.39.2
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
postgresql-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Docker CLI only (daemon is DinD over TCP for stack profile)
|
|
COPY --from=docker:27-cli /usr/local/bin/docker /usr/local/bin/docker
|
|
|
|
RUN set -eux; \
|
|
arch="${TARGETARCH}"; \
|
|
case "${arch}" in \
|
|
amd64) cli_arch=amd64 ;; \
|
|
arm64) cli_arch=arm64 ;; \
|
|
*) cli_arch=amd64 ;; \
|
|
esac; \
|
|
curl -fsSL "https://github.com/supabase/cli/releases/download/v${SUPABASE_CLI_VERSION}/supabase_linux_${cli_arch}.tar.gz" \
|
|
| tar -xz -C /usr/local/bin supabase; \
|
|
chmod +x /usr/local/bin/supabase; \
|
|
supabase --version
|
|
|
|
RUN useradd --create-home --uid 1001 --shell /bin/bash runner \
|
|
&& mkdir -p /work /output /examples \
|
|
&& chown -R runner:runner /work /output /examples
|
|
|
|
USER runner
|
|
WORKDIR /work
|
|
CMD ["bash"]
|