Skip to content

Commit e62a12d

Browse files
authored
Fix CARGO_HOME location for airflow user builds (#64899)
Move CARGO_HOME from /usr/local/cargo to /home/airflow/.cargo so that cargo builds work correctly when running as the airflow user, avoiding permission issues with the system-wide cargo directory.
1 parent 26a700f commit e62a12d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,7 @@ ENV DEV_APT_DEPS=${DEV_APT_DEPS} \
18741874
ARG PYTHON_LTO
18751875

18761876
ENV RUSTUP_HOME="/usr/local/rustup"
1877-
ENV CARGO_HOME="/usr/local/cargo"
1877+
ENV CARGO_HOME="/home/airflow/.cargo"
18781878
ENV PATH="${CARGO_HOME}/bin:${PATH}"
18791879

18801880
COPY --from=scripts install_os_dependencies.sh /scripts/docker/

0 commit comments

Comments
 (0)