From cbf3c93bf98478a7a829741765b790ee076934f2 Mon Sep 17 00:00:00 2001 From: konstin Date: Thu, 14 Jan 2021 15:01:25 +0100 Subject: [PATCH] Less secure rust installation in Dockerfile Apparently curl is too old :/ --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b0b10251..a88afdd2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,14 @@ ENV PATH /opt/python/cp36-cp36m/bin/:/opt/python/cp37-cp37m/bin/:/opt/python/cp3 # Otherwise `cargo new` errors ENV USER root -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ +RUN curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && python3 -m pip install --no-cache-dir cffi \ && mkdir /io ADD . /maturin/ -RUN cargo rustc --bin maturin --manifest-path /maturin/Cargo.toml -- -C link-arg=-s \ - && mv /maturin/target/debug/maturin /usr/bin/maturin \ +RUN cargo rustc --bin maturin --manifest-path /maturin/Cargo.toml --release -- -C link-arg=-s \ + && mv /maturin/target/release/maturin /usr/bin/maturin \ && rm -rf /maturin WORKDIR /io