Skip to content

chore(#275): remove the dead builder/runner Dockerfile stages#319

Merged
TortoiseWolfe merged 1 commit into
mainfrom
fix/275-remove-dead-docker-stages
Jul 18, 2026
Merged

chore(#275): remove the dead builder/runner Dockerfile stages#319
TortoiseWolfe merged 1 commit into
mainfrom
fix/275-remove-dead-docker-stages

Conversation

@TortoiseWolfe

Copy link
Copy Markdown
Owner

Part of #275 (docker best-practices audit). Removes the dead builder + runner Dockerfile stages.

Why they're dead

ScriptHammer deploys as a static export (output: 'export'out/ on GitHub Pages), so there is no long-running Node server image:

  • runner copied .next/standalone, which output: 'export' never emits → the stage could never build.
  • Nothing targets runner (no target: runner in compose/CI/scripts); the builder compose service uses target: dev and runs pnpm build as a command.
  • The builder Dockerfile stage existed only to feed runner.

Change

  • Dockerfile now ends at the dev stage (base → deps → dev); dead builder/runner removed, with a NOTE explaining why there's no prod server image.
  • Updated the docker-compose builder-service comment that referenced the removed stages.

Validation

  • docker compose config -q → valid
  • docker build --check --target dev → "Check complete, no warnings found"
  • no lingering from=builder / AS runner references

Scope: the "delete dead runner stage" item of #275. Remaining audit items (demo-secrets → compose secrets:, tini, broaden .dockerignore) stay open on #275.

🤖 Generated with Claude Code

ScriptHammer deploys as a static export (output: 'export' → out/ on GitHub Pages), so there is no long-running Node server image. The 'runner' stage copied .next/standalone — which output: 'export' never emits — so it could never build, and nothing targets it (the 'builder' compose service uses target: dev and runs 'pnpm build' as a command). The 'builder' stage existed only to feed 'runner'.

Remove both dead stages (the Dockerfile now ends at 'dev') and update the docker-compose builder-service comment that referenced them. Validated: compose parses, 'docker build --check --target dev' clean. One item of the #275 docker audit; the rest (secrets block, tini, .dockerignore) remain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TortoiseWolfe
TortoiseWolfe merged commit 79d7c50 into main Jul 18, 2026
18 checks passed
@TortoiseWolfe
TortoiseWolfe deleted the fix/275-remove-dead-docker-stages branch July 18, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants