Files
supabase/.agents/skills/test-the-docs/sandbox/Dockerfile
fc228529bc chore: bump to Node 26 (#53589)
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>
2026-11-24 10:43:35 +00:00

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"]