diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 540396fab9..020942b489 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -275,7 +275,7 @@ jobs: uses: docker/build-push-action@v3 if: success() || steps.unzip-arm64.conclusion == 'success' # Build and push all platform if unzip-arm64 succeeds with: - context: . + context: ./docker/ci/ file: ./docker/ci/Dockerfile push: true platforms: linux/amd64,linux/arm64 @@ -287,7 +287,7 @@ jobs: uses: docker/build-push-action@v3 if: success() || steps.download-arm64.conclusion == 'failure' # Only build and push amd64 platform if download-arm64 fails with: - context: . + context: ./docker/ci/ file: ./docker/ci/Dockerfile push: true platforms: linux/amd64 diff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfile index 9ae0d0879c..c495ec2aff 100644 --- a/docker/ci/Dockerfile +++ b/docker/ci/Dockerfile @@ -6,7 +6,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ python3.10-dev \ python3-pip -RUN python3 -m pip install pyarrow +COPY requirements.txt /etc/greptime/requirements.txt + +RUN python3 -m pip install -r /etc/greptime/requirements.txt ARG TARGETARCH diff --git a/docker/ci/requirements.txt b/docker/ci/requirements.txt new file mode 100644 index 0000000000..b8a6b07526 --- /dev/null +++ b/docker/ci/requirements.txt @@ -0,0 +1,5 @@ +numpy>=1.24.2 +pandas>=1.5.3 +pyarrow>=11.0.0 +requests>=2.28.2 +scipy>=1.10.1