Skip to content

Commit

Permalink
fix(dockerfile): avoid build hang at ARG statement (#130)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
heiruwu authored Mar 28, 2024
1 parent b2f564a commit f02a27c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion instill/helpers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f02a27c

Please sign in to comment.