fix(api image): copy migrations and openapi.yaml into the build stage #19
Loading…
Reference in a new issue
No description provided.
Delete branch "hotfix/api-image-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
The api crate embeds
migrations/(sqlx::migrate!) andopenapi.yaml(include_str!) at compile time, but the image build stage never COPYed them. The image only ever built off a stale docker cache layer from the api agent's iteration; PR #9's Cargo.lock churn invalidated that layer and the compose smoke test surfaced the break (error canonicalizing migration directory ... /src/openapi.yaml: No such file or directory).Gates
docker build -f deploy/api.Dockerfile .— green from scratch context on current master.