Skip to content

Commit

Permalink
fix: $TARGET_BIN not found when docker run the image (#3297)
Browse files Browse the repository at this point in the history
* fix: TARGET_BIN path

* chore: return available versions

* refactor: Use ENV instead of ARG in ci dockerfile

* chore: add TARGET_BIN ENV pass to ENTRYPOINT

* chore: add TARGET_BIN ENV pass to ENTRYPOINT

* chore: update entrypoint

* chore: update entrypoint
  • Loading branch information
daviderli614 committed Feb 15, 2024
1 parent 2a971b0 commit 31ace9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/ci/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ ADD $TARGETARCH/$TARGET_BIN /greptime/bin/

ENV PATH /greptime/bin/:$PATH

ENTRYPOINT ["$TARGET_BIN"]
ENV TARGET_BIN=$TARGET_BIN

ENTRYPOINT ["sh", "-c", "exec $TARGET_BIN \"$@\"", "--"]

0 comments on commit 31ace9d

Please sign in to comment.