Skip to content

feat: migrate all Docker images to DHI Alpine base#84

Open
adamsaimi wants to merge 2 commits into
mainfrom
feat/dhi-alpine-images
Open

feat: migrate all Docker images to DHI Alpine base#84
adamsaimi wants to merge 2 commits into
mainfrom
feat/dhi-alpine-images

Conversation

@adamsaimi

Copy link
Copy Markdown
Collaborator

Summary

  • Switch all three images (backend, code_reviewer, frontend) from python:3.14-slim / node:24-alpine to dhi.io Alpine-based images
  • Alpine base reduces attack surface and CVE exposure vs Debian slim
  • Drop nodesource install in code_reviewer — use a dedicated node-installer stage instead; claude is a standalone binary so node runtime is not needed at runtime, saving ~330 MB (999 MB → 651 MB)
  • Add DHI registry login to release-please CI workflow
  • Fix GITHUB_ENABLED not being forwarded into the backend container in docker-compose
  • Fix GITHUB_APP_PRIVATE_KEY_PATH env var to use ${VAR:-default} pattern consistently with other vars

Test plan

  • docker compose --profile all up -d starts all services healthy
  • Backend API responds at /health
  • Frontend loads at port 3000
  • Code reviewer container spawns and runs a review end-to-end

🤖 Generated with Claude Code

adamsaimi and others added 2 commits June 10, 2026 11:26
- Switch backend, code_reviewer, and frontend to dhi.io images
- Use Alpine variants for smaller attack surface and fewer CVEs
- backend: builder on 3.14-alpine-dev, runtime on 3.14-alpine-dev (needs shell)
- code_reviewer: replace nodesource+bun with dedicated node-installer stage; claude binary is standalone so node runtime not needed at runtime (-330MB)
- frontend: builder on node:24-alpine3.23-dev, runtime on node:24-alpine3.23 (distroless)
- Add DHI registry login step to release-please workflow
- Fix GITHUB_ENABLED not being forwarded to backend container in docker-compose
- Fix GITHUB_APP_PRIVATE_KEY_PATH to use ${VAR:-default} pattern consistently

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@adamsaimi adamsaimi self-assigned this Jun 10, 2026
@adamsaimi adamsaimi requested a review from Copilot June 10, 2026 09:37
@adamsaimi adamsaimi requested review from Lujeni and removed request for Lujeni and Copilot June 10, 2026 09:37
@Lujeni

Lujeni commented Jun 11, 2026

Copy link
Copy Markdown
Member

nice

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.

2 participants