Skip to content

fix: include changelog in docker web build#344

Open
pandego wants to merge 1 commit intojamiepine:mainfrom
pandego:fix/308-docker-compose-startup
Open

fix: include changelog in docker web build#344
pandego wants to merge 1 commit intojamiepine:mainfrom
pandego:fix/308-docker-compose-startup

Conversation

@pandego
Copy link
Contributor

@pandego pandego commented Mar 22, 2026

Summary

  • fix the Docker web build by including CHANGELOG.md in the frontend build context
  • stop excluding CHANGELOG.md from the Docker build context in .dockerignore

Problem

docker compose up --build -d was failing on current main during the frontend build.

The Vite changelog plugin reads CHANGELOG.md at build time, but the Dockerfile only copied package.json, bun.lock, app/, and web/ into the frontend stage. The build then failed with:

[changelog] Could not load virtual:changelog ... ENOENT: no such file or directory, open '/build/CHANGELOG.md'

Fix

  • copy CHANGELOG.md into the frontend Docker build stage
  • remove CHANGELOG.md from .dockerignore so it is actually available to Docker

Validation

  • reproduced the failure locally on a fresh branch from latest main
  • ran docker compose up --build -d
  • confirmed the container reaches healthy state on 127.0.0.1:17493
  • confirmed GET /health returns healthy JSON
  • opened http://127.0.0.1:17493/ in the browser and verified the Voicebox UI loads

Closes #308.

Summary by CodeRabbit

  • Chores
    • Updated Docker build configuration to include the CHANGELOG file in the Docker image, making it available within the containerized application.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 22, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e1b2ea03-70df-4bd6-89bb-0077690329f4

📥 Commits

Reviewing files that changed from the base of the PR and between 9a955a7 and 4347eae.

📒 Files selected for processing (2)
  • .dockerignore
  • Dockerfile
💤 Files with no reviewable changes (1)
  • .dockerignore

📝 Walkthrough

Walkthrough

These changes modify Docker configuration files to include CHANGELOG.md in the frontend build process. The file was removed from .dockerignore and added to the COPY command in the Dockerfile's frontend build stage, alongside existing package.json and bun.lock files.

Changes

Cohort / File(s) Summary
Docker Build Configuration
.dockerignore, Dockerfile
Removed CHANGELOG.md from .dockerignore to include it in the Docker build context, and updated the frontend build stage in Dockerfile to copy CHANGELOG.md alongside package.json and bun.lock.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A changelog joins the Docker spree,
No longer hidden, now all can see,
Built with the bundle, locked and tight,
The frontend now compiles just right! 📦✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: including CHANGELOG.md in the Docker web build, which directly addresses the fix implemented in the changeset.
Linked Issues check ✅ Passed The PR changes address the core issue #308 by ensuring CHANGELOG.md is available during the Vite build process, resolving the ENOENT error that was causing the Docker build to fail.
Out of Scope Changes check ✅ Passed All changes are directly scoped to fixing the Docker build by including CHANGELOG.md; no unrelated modifications are present in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can disable sequence diagrams in the walkthrough.

Disable the reviews.sequence_diagrams setting to disable sequence diagrams in the walkthrough.

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.

failed to run 'docker compose up'

1 participant