Skip to content

Commit ceeeee2

Browse files
dvystrcilclaude
andcommitted
fix: make CARGO_HOME world-writable so user 1000 can build crates
cargo needs to write to /usr/local/cargo/registry when downloading crate sources. chmod a+rx was missing the write bit, causing 'Permission denied' on registry/cache/ during tokenizers wheel build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 25a599d commit ceeeee2

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
@@ -25,7 +25,7 @@ RUN apt-get update && \
2525
&& rm -rf /var/lib/apt/lists/* \
2626
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
2727
sh -s -- -y --default-toolchain stable --no-modify-path \
28-
&& chmod -R a+rx /usr/local/rustup /usr/local/cargo \
28+
&& chmod -R a+rwx /usr/local/rustup /usr/local/cargo \
2929
&& curl -sL "https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz" \
3030
| tar -xz -C /usr/local/bin oras
3131

0 commit comments

Comments
 (0)