mirror of
https://github.com/An0nX/telemt-docker.git
synced 2026-05-17 00:46:03 +03:00
build: fix rustup
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -20,8 +20,16 @@ RUN --mount=type=cache,target=/var/cache/apk \
|
||||
zlib-dev zlib-static \
|
||||
&& update-ca-certificates
|
||||
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
|
||||
| sh -s -- -y --default-toolchain stable --profile minimal
|
||||
RUN set -eux; \
|
||||
case "$(apk --print-arch)" in \
|
||||
x86_64) ARCH=x86_64 ;; \
|
||||
aarch64) ARCH=aarch64 ;; \
|
||||
*) echo "unsupported arch: $(apk --print-arch)"; exit 1 ;; \
|
||||
esac; \
|
||||
curl -fsSL "https://static.rust-lang.org/rustup/dist/${ARCH}-unknown-linux-musl/rustup-init" -o /tmp/rustup-init; \
|
||||
chmod +x /tmp/rustup-init; \
|
||||
/tmp/rustup-init -y --default-toolchain stable --profile minimal; \
|
||||
rm /tmp/rustup-init
|
||||
|
||||
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true \
|
||||
CARGO_TERM_COLOR=always \
|
||||
|
||||
Reference in New Issue
Block a user