diff --git a/Cargo.toml b/Cargo.toml index 781833a..9f5dd2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" [workspace.package] authors = ["Offchain Labs"] -version = "0.5.5" +version = "0.5.6" edition = "2021" homepage = "https://arbitrum.io" license = "MIT OR Apache-2.0" diff --git a/Dockerfile b/Dockerfile index 48fe819..472b884 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM --platform=linux/amd64 rust:1.80 as builder +ARG TARGETPLATFORM=linux/amd64 +FROM rust:1.80 AS builder RUN apt-get update && apt-get install -y git RUN rustup target add x86_64-unknown-linux-gnu RUN git clone https://github.com/offchainlabs/cargo-stylus.git WORKDIR /cargo-stylus -RUN git checkout v0.5.2 +RUN git checkout v0.5.6 RUN cargo build --release --manifest-path main/Cargo.toml -FROM --platform=linux/amd64 rust:1.80 -COPY --from=builder /cargo-stylus/target/release/cargo-stylus /usr/local/bin/cargo-stylus \ No newline at end of file + +FROM rust:1.80 +COPY --from=builder /cargo-stylus/target/release/cargo-stylus /usr/local/bin/cargo-stylus diff --git a/README.md b/README.md index 0ce501f..ab0778e 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,9 @@ Cargo command for developing Arbitrum Stylus projects ### Building the Project Locally Install [Rust](https://www.rust-lang.org/tools/install) -Clone the repo to your local device +Clone the current released version to your local device ``` -git clone https://github.com/OffchainLabs/cargo-stylus.git +git clone --branch v0.5.6 https://github.com/OffchainLabs/cargo-stylus.git cd cargo-stylus ```