Skip to content

fix(docker): COPY config/ into builder stage — Docker Publish build failure - #106

Merged
argszero merged 1 commit into
mainfrom
fix/dockerfile-config-copy
Aug 20, 2026
Merged

argszero merged 1 commit into
mainfrom
fix/dockerfile-config-copy

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

Fix the failing Docker Publish workflow (cargo build --release --locked exited 101 in the builder stage).

Root cause: commit a39e809 (feat(config): embed full default config via include_str!) introduced include_str!("../config/config.example.toml") in src/main.rs:98, but the Dockerfile builder stage only copies Cargo.toml/Cargo.lock/src/ui — config/config.example.toml is absent at compile time, so the build fails with:

error: couldn't read `src/../config/config.example.toml`: No such file or directory (os error 2)

The runtime stage already copies the config for first-start bootstrap; only the builder stage was missing it.

Fix: add COPY config ./config to the builder stage before RUN cargo build --release --locked.

Verification

  • cargo build --release --locked passes locally (config present — same layout the builder stage now provides)
  • cargo fmt --check clean
  • Docker daemon not available locally (colima down) — Docker Publish workflow will validate on this PR

This unblocks Docker Publish on main (runs 32385762093, 32386047622).

@argszero
argszero merged commit 81263d9 into main Aug 20, 2026
1 check passed
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