diff --git a/docker/ci/ubuntu/Dockerfile b/docker/ci/ubuntu/Dockerfile index 8907cf624c..d11746cf3a 100644 --- a/docker/ci/ubuntu/Dockerfile +++ b/docker/ci/ubuntu/Dockerfile @@ -1,5 +1,8 @@ FROM ubuntu:22.04 +# The root path under which contains all the dependencies to build this Dockerfile. +ARG DOCKER_BUILD_ROOT=. + RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ ca-certificates \ python3.10 \ @@ -7,7 +10,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ python3-pip \ curl -COPY ./docker/python/requirements.txt /etc/greptime/requirements.txt +COPY $DOCKER_BUILD_ROOT/docker/python/requirements.txt /etc/greptime/requirements.txt RUN python3 -m pip install -r /etc/greptime/requirements.txt