@@ -12,36 +12,6 @@ RUN apt-get update \
12
12
&& apt-get clean \
13
13
&& rm -rf /var/lib/apt/lists/*
14
14
15
- # Set environment variables for Rust
16
- ENV RUSTUP_HOME=/usr/local/rustup \
17
- CARGO_HOME=/usr/local/cargo \
18
- PATH=/usr/local/cargo/bin:$PATH \
19
- RUST_VERSION=1.69.0
20
-
21
- # Install Rust
22
- RUN set -eux; \
23
- dpkgArch="$(dpkg --print-architecture)" || exit 1; \
24
- if [ "${dpkgArch}" = "amd64" ]; then \
25
- rustArch="x86_64-unknown-linux-gnu" ; rustupSha256="0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db" ; \
26
- elif [ "${dpkgArch}" = "armhf" ]; then \
27
- rustArch="armv7-unknown-linux-gnueabihf" ; rustupSha256="f21c44b01678c645d8fbba1e55e4180a01ac5af2d38bcbd14aa665e0d96ed69a" ; \
28
- elif [ "${dpkgArch}" = "arm64" ]; then \
29
- rustArch="aarch64-unknown-linux-gnu" ; rustupSha256="673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800" ; \
30
- elif [ "${dpkgArch}" = "i386" ]; then \
31
- rustArch="i686-unknown-linux-gnu" ; rustupSha256="e7b0f47557c1afcd86939b118cbcf7fb95a5d1d917bdd355157b63ca00fc4333" ; \
32
- else \
33
- echo "unsupported architecture: ${dpkgArch}" >&2; exit 1; \
34
- fi; \
35
- wget "https://static.rust-lang.org/rustup/archive/1.26.0/${rustArch}/rustup-init" -O /tmp/rustup-init; \
36
- echo "${rustupSha256} */tmp/rustup-init" | sha256sum -c -; \
37
- chmod +x /tmp/rustup-init; \
38
- /tmp/rustup-init -y --no-modify-path --profile minimal --default-toolchain "$RUST_VERSION" --default-host "$rustArch" ; \
39
- rm /tmp/rustup-init; \
40
- chmod -R a+w "$RUSTUP_HOME" "$CARGO_HOME" ; \
41
- rustup --version; \
42
- cargo --version; \
43
- rustc --version
44
-
45
15
# Install Protobuf compiler
46
16
RUN apt-get update \
47
17
&& apt-get install -y --no-install-recommends protobuf-compiler \
0 commit comments