ci: adding DOCKER_BUILD_ROOT docker arg for dev build (#3241)

Update Dockerfile
This commit is contained in:
LFC
2024-01-25 17:05:27 +08:00
committed by GitHub
parent 673a4bd4ef
commit 2d57bf0d2a

View File

@@ -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