diff --git a/docker/ci/ubuntu/Dockerfile b/docker/ci/ubuntu/Dockerfile index 8b09b39819d2..580b73e56ffa 100644 --- a/docker/ci/ubuntu/Dockerfile +++ b/docker/ci/ubuntu/Dockerfile @@ -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 \"$@\"", "--"]