From 2d57bf0d2a138d290b393965ecf724874ddfbb61 Mon Sep 17 00:00:00 2001 From: LFC <990479+MichaelScofield@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:05:27 +0800 Subject: [PATCH] ci: adding `DOCKER_BUILD_ROOT` docker arg for dev build (#3241) Update Dockerfile --- docker/ci/ubuntu/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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