mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
⬆️ Update rust to 1.91
This commit is contained in:
@@ -149,18 +149,24 @@ FROM base AS setup-rust
|
|||||||
ENV PATH=/opt/cargo/bin:$PATH \
|
ENV PATH=/opt/cargo/bin:$PATH \
|
||||||
RUSTUP_HOME=/opt/rustup \
|
RUSTUP_HOME=/opt/rustup \
|
||||||
CARGO_HOME=/opt/cargo \
|
CARGO_HOME=/opt/cargo \
|
||||||
RUSTUP_VERSION=1.27.1 \
|
RUSTUP_VERSION=1.28.2 \
|
||||||
RUST_VERSION=1.85.0 \
|
RUST_VERSION=1.91.0 \
|
||||||
EMSCRIPTEN_VERSION=4.0.6
|
EMSCRIPTEN_VERSION=4.0.6
|
||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
# Same steps as in Rust official Docker image https://github.com/rust-lang/docker-rust/blob/9f287282d513a84cb7c7f38f197838f15d37b6a9/1.81.0/bookworm/Dockerfile
|
# Same steps as in Rust official Docker image https://github.com/rust-lang/docker-rust/blob/9f287282d513a84cb7c7f38f197838f15d37b6a9/1.81.0/bookworm/Dockerfile
|
||||||
dpkgArch="$(dpkg --print-architecture)"; \
|
arch="$(dpkg --print-architecture)"; \
|
||||||
case "${dpkgArch##*-}" in \
|
case "$arch" in \
|
||||||
amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;; \
|
'amd64') \
|
||||||
arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;; \
|
rustArch='x86_64-unknown-linux-gnu'; \
|
||||||
|
rustupSha256='20a06e644b0d9bd2fbdbfd52d42540bdde820ea7df86e92e533c073da0cdd43c'; \
|
||||||
|
;; \
|
||||||
|
'arm64') \
|
||||||
|
rustArch='aarch64-unknown-linux-gnu'; \
|
||||||
|
rustupSha256='e3853c5a252fca15252d07cb23a1bdd9377a8c6f3efa01531109281ae47f841c'; \
|
||||||
|
;; \
|
||||||
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
|
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
wget "https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${rustArch}/rustup-init"; \
|
wget "https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${rustArch}/rustup-init"; \
|
||||||
|
|||||||
Reference in New Issue
Block a user