-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdc9208
commit 9af2781
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
FROM rust:1.80 | ||
COPY --from=builder /cargo-stylus/target/release/cargo-stylus /usr/local/bin/cargo-stylus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters