From c7aa8c53638ca65dd45f4efff8d6ebfedbf5c8ed Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 12 Feb 2024 13:45:35 +0800 Subject: [PATCH] chore: add TARGET_BIN ENV pass to ENTRYPOINT --- docker/ci/ubuntu/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/ci/ubuntu/Dockerfile b/docker/ci/ubuntu/Dockerfile index 56edc84e4322..5d4dd129a6f0 100644 --- a/docker/ci/ubuntu/Dockerfile +++ b/docker/ci/ubuntu/Dockerfile @@ -5,7 +5,6 @@ ARG DOCKER_BUILD_ROOT=. # The binary name of GreptimeDB executable. # Defaults to "greptime", but sometimes in other projects it might be different. ARG TARGET_BIN=greptime -ENV TARGET_BIN=$TARGET_BIN RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ ca-certificates \ @@ -24,4 +23,6 @@ ADD $TARGETARCH/$TARGET_BIN /greptime/bin/ ENV PATH /greptime/bin/:$PATH +ENV TARGET_BIN=$TARGET_BIN + ENTRYPOINT ["$TARGET_BIN"]