fix: $TARGET_BIN not found when docker run the image (#3297)

* 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
This commit is contained in:
liyang
2024-02-15 19:33:05 +08:00
committed by GitHub
parent 2a971b0fff
commit 31ace9dd5c

View File

@@ -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 \"$@\"", "--"]