fix(build): drop COPY of deleted views/public from Dockerfiles #65

Merged
David merged 1 commit from fix/dockerfile-drop-deleted-spa-copies into main 2026-06-21 03:44:27 +02:00
Owner

Summary

Fixes the OCI image build, which broke after the rebrand (#64) removed the vendored legacy SPA (public/ and views/). oci-build/Dockerfile still copied those directories, so the build failed:

COPY views ./views   -> "/views": not found
COPY public ./public -> "/public": not found

Changes

  • oci-build/Dockerfile: remove the dead COPY views ./views and COPY public ./public lines. The release binary no longer needs those trees - templates serve a built-in default and embedded_assets is disk-only after #64.
  • Dockerfile (dev): drop the now-stale --ignore views/** / --ignore public/** flags from the cargo-watch command.
  • compose.dev.yml: drop the ./views and ./public bind mounts so a dev run does not recreate the deleted directories.

Verification

cargo fmt, clippy, and the full test suite pass (pre-commit hook, CI parity). A local docker buildx build -f oci-build/Dockerfile gets past the previously-failing COPY steps and builds the release binary.

🤖 Generated with Claude Code

## Summary Fixes the OCI image build, which broke after the rebrand (#64) removed the vendored legacy SPA (`public/` and `views/`). `oci-build/Dockerfile` still copied those directories, so the build failed: ``` COPY views ./views -> "/views": not found COPY public ./public -> "/public": not found ``` ## Changes - `oci-build/Dockerfile`: remove the dead `COPY views ./views` and `COPY public ./public` lines. The release binary no longer needs those trees - templates serve a built-in default and `embedded_assets` is disk-only after #64. - `Dockerfile` (dev): drop the now-stale `--ignore views/**` / `--ignore public/**` flags from the cargo-watch command. - `compose.dev.yml`: drop the `./views` and `./public` bind mounts so a dev run does not recreate the deleted directories. ## Verification `cargo fmt`, `clippy`, and the full test suite pass (pre-commit hook, CI parity). A local `docker buildx build -f oci-build/Dockerfile` gets past the previously-failing COPY steps and builds the release binary. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(build): drop COPY of deleted views/public from Dockerfiles
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 59s
Create release / Create release from merged PR (pull_request) Has been skipped
6382b9a887
The rebrand (#64) removed the vendored legacy SPA (public/ and views/) and excised its compile-time embed, but the production image Dockerfile still copied those directories, so the OCI build failed at `COPY views ./views` / `COPY public ./public` with "not found".

Remove the dead COPY lines from oci-build/Dockerfile. The release binary no longer needs those trees: templates serve a built-in default and embedded_assets is disk-only. Also drop the now-stale `--ignore views/** --ignore public/**` flags from the dev Dockerfile's cargo-watch command and the `./views` / `./public` bind mounts from compose.dev.yml so a dev run does not recreate the deleted dirs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
David merged commit 36d4ef46a6 into main 2026-06-21 03:44:27 +02:00
David deleted branch fix/dockerfile-drop-deleted-spa-copies 2026-06-21 03:44:28 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-server!65
No description provided.