Skip to content

Docker: source-based image, loopback host rewrite, and CI tweaks#117

Merged
rokde merged 6 commits into
mainfrom
split/docker
May 22, 2026
Merged

Docker: source-based image, loopback host rewrite, and CI tweaks#117
rokde merged 6 commits into
mainfrom
split/docker

Conversation

@rokde
Copy link
Copy Markdown
Contributor

@rokde rokde commented May 22, 2026

Summary

  • Build Docker image from source via multi-stage php:8.5-cli-alpine; add .dockerignore, Dockerfile, Makefile targets.
  • Strip unused mpdf font families from the vendor tree during the CI build to shrink the image.
  • Rewrite 127.0.0.1 / localhost connection hosts to host.docker.internal automatically when running inside a Docker container (DatabaseConnectionService).
  • Document image internals, host mounting, automatic loopback rewrite, and a pull-and-run example.

Test plan

  • `composer test` green locally
  • Build image: `make docker-build`
  • Run a connection test inside container against host DB at `127.0.0.1` — verifies rewrite to `host.docker.internal`
  • Review docs/docker-distribution.md rendered

🤖 Generated with Claude Code

@rokde rokde self-assigned this May 22, 2026
@rokde rokde merged commit d117df2 into main May 22, 2026
16 checks passed
@rokde rokde deleted the split/docker branch May 22, 2026 15:17
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