Skip to content

Commit aa05f7a

Browse files
nnobelissschuberth
authored andcommitted
feat(docker): Add cargo-credential-netrc to the Docker image
Some projects may have a hard build dependency on this crate (see [1]). [1]: https://crates.io/crates/cargo-credential-netrc Signed-off-by: Nicolas Nobelis <[email protected]>
1 parent adf9d25 commit aa05f7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,4 +607,7 @@ WORKDIR $HOME
607607
# Ensure that these directories exist in the container to be able to mount directories from the host into them with correct permissions.
608608
RUN mkdir -p "$HOME/.ort" "$HOME/.gradle"
609609

610+
# Install cargo-credential-netrc late in the build to prevent an error accessing /opt/rust/cargo/registry/.
611+
RUN $CARGO_HOME/bin/cargo install cargo-credential-netrc
612+
610613
ENTRYPOINT ["/opt/ort/bin/ort"]

0 commit comments

Comments
 (0)