Skip to content

Fix Docker live reload for local source changes - #90

Open
sacgsxr wants to merge 1 commit into
opensacorg:mainfrom
sacgsxr:fix/docker-live-reload-61
Open

sacgsxr wants to merge 1 commit into
opensacorg:mainfrom
sacgsxr:fix/docker-live-reload-61

Conversation

@sacgsxr

@sacgsxr sacgsxr commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • bind the host _src directory to /app, where the runtime image executes Eleventy
  • preserve image-installed dependencies with an anonymous /app/node_modules volume
  • allow Eleventy to observe local file changes without rebuilding or restarting the container

Closes #61.

Verification

  • docker compose config --quiet
  • confirmed normalized mounts: host _src → /app and anonymous volume → /app/node_modules
  • started the existing site image through the updated Compose configuration; / returned HTTP 200
  • touched host _src/index.pug; the running container logged File changed: ./index.pug and rebuilt 17 pages without restarting; / continued returning HTTP 200
  • lint passed
  • TypeScript typecheck passed
  • unit tests: 39 passed
  • accessibility tests: 3 passed
  • E2E tests with CI=1: 5 passed

Existing build caveat

A completely fresh Docker build currently stops at the existing RUN npm audit fix step in Dockerfile because npm exits nonzero for the current dependency audit. That failure predates and is unrelated to this Compose-only change; the live-reload behavior was exercised using the existing runtime image.

This branch has not been deployed

No deployments
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.

Docker does not watch local file changes

1 participant