Skip to content

chore: update Dockerfile and build script to support custom bin and lib path#752

Merged
Anmol1696 merged 1 commit intohyperweb-io:mainfrom
nowooj:chore/latest-gaia
Mar 16, 2026
Merged

chore: update Dockerfile and build script to support custom bin and lib path#752
Anmol1696 merged 1 commit intohyperweb-io:mainfrom
nowooj:chore/latest-gaia

Conversation

@nowooj
Copy link
Copy Markdown
Contributor

@nowooj nowooj commented Mar 5, 2026

Summary

Chain base images may put binaries in different paths. This change lets you set binary and library paths per chain in versions.yaml without adding a separate Dockerfile.
Fixes gaia images where the binary lives in /usr/local/bin and was not included when using the shared Dockerfile (which only copied /bin).

Changes

1. docker/chains/Dockerfile

  • Add ARG BIN_PATH=/bin and ARG LIB_PATH=/lib
  • Use ${BIN_PATH} and ${LIB_PATH} in COPY --from=source
  • Use explicit ENV form: ENV PACKAGES="curl make bash jq sed" (avoids LegacyKeyValueFormat warning)

2. docker/chains/build-docker-chains.sh

  • Read bin_path (default /bin) and lib_path (default /lib) from versions.yaml
  • Pass them to docker buildx build as --build-arg BIN_PATH and --build-arg LIB_PATH

3. docker/chains/versions.yaml

  • Add bin_path: /usr/local/bin for gaia

Usage

For other chains with different paths, add the options in versions.yaml only:

  - name: some-chain
    base: ghcr.io/...
    bin_path: /usr/local/bin   # optional; default is /bin
    lib_path: /usr/lib         # optional; default is /lib
    tags:
      - v1.0.0

@Anmol1696 Anmol1696 merged commit 2e039c8 into hyperweb-io:main Mar 16, 2026
5 checks passed
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