From c2c4afa424bb6cfe6d381710295cc0035b8bd390 Mon Sep 17 00:00:00 2001 From: ohm Date: Wed, 5 Aug 2026 13:14:36 +0700 Subject: [PATCH] fix(docker): drop the external dockerfile frontend pin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `# syntax=docker/dockerfile:1` makes BuildKit fetch a frontend image from Docker Hub before it reads the first instruction. That fetch fails here: failed to resolve source metadata for docker.io/docker/dockerfile:1: Head "https://registry-1.docker.io/v2/docker/dockerfile/manifests/1": net/http: TLS handshake timeout Isolated to the directive itself — a two-line Dockerfile containing only the syntax comment and `FROM hello-world` reproduces it, and the same file without the comment builds in 2.3s. Regular pulls are unaffected: `docker pull node:24-alpine` completes in seconds, so this is BuildKit's registry path, not general connectivity. Nothing here needs the external frontend. The file uses only CMD, COPY, ENV, EXPOSE, FROM, RUN, USER and WORKDIR — no `RUN --mount`, heredocs or `COPY --link` — so BuildKit's built-in frontend handles it. Verified with a full `docker build`: the image builds, and running it serves HTTP 200 with the stylesheet fetching 200 at 68951 bytes. That also exercises the pnpm-workspace.yaml fix from #3 in a real image for the first time. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01BaSzXHiVdswD9rKoVh9Ln4 --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 456dab0..fd30fc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ -# syntax=docker/dockerfile:1 - FROM node:24-alpine AS base ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH"