build: fully-qualify node image for buildah (no short-name aliases)
Some checks failed
sf self-deploy / build, test, and publish server image (push) Failing after 10m48s
sf self-deploy / deploy test and probe (push) Has been skipped
sf self-deploy / promote prod (push) Has been skipped

buildah doesn't have docker's default 'docker.io/library/<name>' alias
resolution. The unqualified `FROM node:26.1-slim` fails with 'short-name
did not resolve to an alias and no containers-registries.conf(5) was
found'. Spell it out: `docker.io/library/node:26.1-slim`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mikael Hugo 2026-05-18 02:57:06 +02:00
parent 2a39094484
commit 274e057888

View file

@ -9,7 +9,7 @@
# Consumer: .forgejo/workflows/self-deploy.yml and GitOps deployments that run
# `sf server /workspace --host 0.0.0.0 --port 4000`.
FROM node:26.1-slim AS build
FROM docker.io/library/node:26.1-slim AS build
WORKDIR /src
ENV CI=1
@ -58,7 +58,7 @@ RUN rm -rf \
node_modules/chromium-bidi \
packages/*/tsconfig.tsbuildinfo
FROM node:26.1-slim AS sf-server
FROM docker.io/library/node:26.1-slim AS sf-server
WORKDIR /opt/sf
ENV NODE_ENV=production