Skip to content

Commit

Permalink
Less secure rust installation in Dockerfile
Browse files Browse the repository at this point in the history
Apparently curl is too old :/
  • Loading branch information
konstin committed Jan 14, 2021
1 parent 56cf86a commit cbf3c93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbf3c93

Please sign in to comment.