Skip to content

Commit

Permalink
Fix warnings in generated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gligneul committed Oct 30, 2024
1 parent ba5ee7e commit 13ae7aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ fn create_image(cargo_stylus_version: &str, toolchain_version: &str) -> Result<(
write!(
child.stdin.as_mut().unwrap(),
"\
FROM --platform=linux/amd64 offchainlabs/cargo-stylus-base:{} as base
ARG BUILD_PLATFORM=linux/amd64
FROM --platform=${{BUILD_PLATFORM}} offchainlabs/cargo-stylus-base:{} AS base
RUN rustup toolchain install {}-x86_64-unknown-linux-gnu
RUN rustup default {}-x86_64-unknown-linux-gnu
RUN rustup target add wasm32-unknown-unknown
Expand Down

0 comments on commit 13ae7aa

Please sign in to comment.