Skip to content

Instantly share code, notes, and snippets.

@Vany
Created November 18, 2019 14:52
Show Gist options
  • Save Vany/23fcf6ce40b62f891fb63a941701571a to your computer and use it in GitHub Desktop.
Save Vany/23fcf6ce40b62f891fb63a941701571a to your computer and use it in GitHub Desktop.
Rust building docker
FROM debian
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN apt-get update && \
apt-get install -y wget git build-essential python3
RUN set -eux; \
\
url="https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init"; \
wget "$url"; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path --default-toolchain nightly; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
rustup --version; \
cargo --version; \
rustc --version;
RUN git clone https://github.com/LoopringSecondary/phase2-bn254 --branch master && \
cd phase2-bn254/phase2 && \
cargo build --release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment