Skip to content

feat(indexer): multi-stage Dockerfile and docker-build CI job#23

Open
Depo-dev wants to merge 4 commits into
devfrom
feat/issue-9-indexer-dockerfile
Open

feat(indexer): multi-stage Dockerfile and docker-build CI job#23
Depo-dev wants to merge 4 commits into
devfrom
feat/issue-9-indexer-dockerfile

Conversation

@Depo-dev

@Depo-dev Depo-dev commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Multi-stage Dockerfile at crates/indexer/Dockerfile: rust:1.78-slim builder + debian:bookworm-slim runtime
  • Dependency layer cached separately so only changed source triggers a Rust rebuild
  • Binary runs as non-root trident user (uid 1001)
  • Adds docker-build job to .github/workflows/ci.yml using docker/build-push-action with GHA cache

Test plan

  • docker build -f crates/indexer/Dockerfile . succeeds locally
  • Final image size < 100 MB (docker image ls trident-indexer)
  • CI docker-build job passes on this PR

Closes #9

Depo-dev and others added 4 commits June 3, 2026 15:07
Multi-stage build: rust:1.78-slim builder compiles trident-indexer in
release mode with dependency layer caching; debian:bookworm-slim runtime
copies only the binary and runs as a non-root trident user. Adds a
docker-build job to CI that builds (but does not push) the indexer image
using GitHub Actions cache for fast subsequent runs.

Closes #9

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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