Repository: rust-cross/rust-musl-cross (language: rust)

Issue:
Dosen't work with azure piplines
I wanted to use this container with azure pipelines but it looks like it create new user for container and that user doesn't have access to `/root/.cargo/bin` where binaries are.

Error https://dev.azure.com/sylwesterrapala/azure-piplines/_build/results?buildId=12&view=logs&jobId=19f40e66-3207-5e25-6b9e-920c88feb988&taskId=dc6aa983-0dab-5b47-2fe7-f99f4eb12c5e&lineStart=486&lineEnd=487&colStart=1&colEnd=1

From this line:
https://github.com/xoac/rust-azure-pipelines/blob/26fbb57ad44af2ac263297d5cdec8086ca9d8578/ci/azure-cross-docker.yml#L16

Here are the permisions for `/root/`
```
 ls -la /root/
total 24
drwx------  6 root root 4096 Mar  1 06:17 .
drwxr-xr-x 52 root root 4096 Mar  7 22:52 ..
-rw-r--r--  1 root root 3106 Oct 22  2015 .bashrc
drwxr-xr-x  3 root root 4096 Mar  1 06:18 .cargo
lrwxrwxrwx  1 root root   13 Mar  1 06:17 .multirust -> /root/.rustup
-rw-r--r--  1 root root  186 Mar  1 06:17 .profile
drwxr-xr-x  7 root root 4096 Mar  1 06:18 .rustup
```
I think changing root to 755 should resolve this problem.



Discussion / hints:

Fix patch:
diff --git a/Dockerfile b/Dockerfile
index 13504f7..241c83e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -51,7 +51,9 @@ ENV TARGET_C_INCLUDE_PATH=/usr/local/musl/$TARGET/include/
 # interact with the user or fool around with TTYs.  We also set the default
 # `--target` to musl so that our users don't need to keep overriding it
 # manually.
-RUN curl https://sh.rustup.rs -sqSf | \
+# Chmod 755 is set for root directory to allow access execute binaries in /root/.cargo/bin (azure piplines create own user).
+RUN chmod 755 /root/ && \
+    curl https://sh.rustup.rs -sqSf | \
     sh -s -- -y --default-toolchain $TOOLCHAIN && \
     rustup target add $TARGET
 RUN echo "[build]\ntarget = \"$TARGET\"\n\n[target.$TARGET]\nlinker = \"$TARGET-gcc\"\n" > /root/.cargo/config


Test patch: