Skip to content

feat(indexer): Dockerfile for indexer crate #9

@Depo-dev

Description

@Depo-dev

Summary

No Dockerfile exists for the indexer. The production docker-compose.yml references a build context at crates/indexer but there is no Dockerfile there.

Acceptance Criteria

  • Multi-stage Dockerfile: builder stage (rust:1.78-slim) + runtime stage (debian:bookworm-slim)
  • Builder: cargo build --release -p trident-indexer
  • Runtime: copy binary only, no Rust toolchain in final image
  • Final image < 100 MB
  • docker build succeeds locally and in CI
  • Add a docker-build job to .github/workflows/ci.yml that builds (but does not push) both images

Files

crates/indexer/Dockerfile (new), .github/workflows/ci.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    infraDocker and CI infrastructurephase-1MVP phase 1 scoperustRust crate work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions