From f02a27c2f82c7ebe902b01037b2cdd01ddb6e231 Mon Sep 17 00:00:00 2001 From: HR Wu <5631010+heiruwu@users.noreply.github.com> Date: Fri, 29 Mar 2024 01:16:54 +0800 Subject: [PATCH] fix(dockerfile): avoid build hang at ARG statement (#130) Because - We are seeing occasional hang at `ARG` statement and change the statement order seems to solve it for now, need to keep an eye on it. This commit - change `ARG` statement order resolves INS-4015 --- instill/helpers/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instill/helpers/Dockerfile b/instill/helpers/Dockerfile index 75bb82a..65762c3 100644 --- a/instill/helpers/Dockerfile +++ b/instill/helpers/Dockerfile @@ -5,9 +5,10 @@ ARG TARGET_ARCH_SUFFIX FROM rayproject/ray:${RAY_VERSION}-py${PYTHON_VERSION}${CUDA_SUFFIX}${TARGET_ARCH_SUFFIX} +ARG PACKAGES + RUN sudo apt-get update && sudo apt-get install curl -y -ARG PACKAGES RUN for package in ${PACKAGES}; do \ pip install --default-timeout=1000 --no-cache-dir $package; \ done;