Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Update rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatyping committed Apr 30, 2020
1 parent 1c207a5 commit 7bf3bcf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions native/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ ENV PATH /opt/python/cp35-cp35m/bin/:/opt/python/cp36-cp36m/bin/:/opt/python/cp3
ENV USER root

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& rustup toolchain add nightly-2020-01-23 \
&& rustup set profile minimal \
&& rustup toolchain add nightly-2020-04-27 \
&& python3 -m pip install --no-cache-dir cffi \
&& mkdir /io

RUN git clone https://github.com/PyO3/maturin /maturin/

RUN cargo +nightly-2020-01-23 rustc --bin maturin --manifest-path /maturin/Cargo.toml -- -C link-arg=-s \
RUN cargo +nightly-2020-04-27 rustc --bin maturin --manifest-path /maturin/Cargo.toml -- -C link-arg=-s \
&& mv /maturin/target/debug/maturin /usr/bin/maturin \
&& rm -rf /maturin

RUN rustup default nightly-2020-01-23
RUN rustup default nightly-2020-04-27

WORKDIR /io

Expand Down

0 comments on commit 7bf3bcf

Please sign in to comment.