Skip to content

Remove Cloudflare Worker config, optimize Docker image - #6

Closed
thdxg wants to merge 1 commit into
v4from
claude/docker-kubernetes-deployability-4034cf
Closed

thdxg wants to merge 1 commit into
v4from
claude/docker-kubernetes-deployability-4034cf

Conversation

@thdxg

@thdxg thdxg commented Aug 12, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Removed Cloudflare Worker configuration: wrangler.jsonc, worker-configuration.d.ts, @sveltejs/adapter-cloudflare, the CF_PAGES adapter switch in svelte.config.js, the .assetsignore hack in the build script, and .wrangler ignore entries. The project now builds exclusively with svelte-adapter-bun.
  • Docker image optimized:
    • Base image pinned to oven/bun:1.3-slim (was unpinned latest/slim)
    • Runtime stage no longer ships node_modules — that was 142 MB of pure devDependencies; the adapter-bun build output is self-contained
    • Cached bun install via BuildKit cache mount
    • Runs as non-root bun user
    • .github, Dockerfile, README.md excluded from build context
  • Release pipeline untouched — the existing workflow (buildx, multi-arch, metadata tags, attestations, GHA cache) works as-is with the new Dockerfile.

Verification

  • bun run check: 0 errors. (bun run lint has a pre-existing Prettier warning on src/routes/+page.svelte, unrelated to this change.)
  • Image builds and serves: / → 200 with full rendering (enhanced-img assets included), /resume → 200 application/pdf, no browser console errors.
  • Container runs as bun (non-root), image size 272 MB.

Reviewer notes

  • The Cloudflare Workers Builds git integration lives in the Cloudflare dashboard, not this repo — its check will keep failing on this PR and should be disconnected in the dashboard (Workers & Pages → website → Settings → Builds) once you're fully off Workers.

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
website c8b3336 Aug 12 2026, 02:09 PM

- Remove wrangler.jsonc, worker-configuration.d.ts, adapter-cloudflare,
  the CF_PAGES adapter switch, and the .assetsignore build hack; the
  project now targets svelte-adapter-bun only.
- Drop .wrangler entries from ignore files.
- Dockerfile: pin oven/bun:1.3-slim, cache bun installs, stop shipping
  node_modules (142MB of devDependencies) in the runtime image — the
  adapter-bun build output is self-contained. Runs as non-root bun user.
- Exclude .github/Dockerfile/README from the docker build context.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@thdxg thdxg changed the title Migrate to Bun and optimize Docker build Remove Cloudflare Worker config, optimize Docker image Aug 12, 2026
@thdxg
thdxg changed the base branch from v2 to v4 August 12, 2026 14:08
@thdxg thdxg closed this Aug 12, 2026
@thdxg
thdxg force-pushed the claude/docker-kubernetes-deployability-4034cf branch from 17b2d03 to c8b3336 Compare August 12, 2026 14:08
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.

1 participant