From 0beee6f352ef1b2ec2a0fccf2bdfcad6f3b9c255 Mon Sep 17 00:00:00 2001 From: akarras Date: Wed, 8 Nov 2023 19:18:29 -0700 Subject: [PATCH] fix: install toolchains inside app directory to use rust nightly version --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 819afb8b..2224e6ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM rustlang/rust:nightly-bullseye as builder # Thank you benwis https://github.com/benwis/benwis_leptos/blob/main/Dockerfile -RUN cargo install --locked cargo-leptos -RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu -RUN rustup target add wasm32-unknown-unknown RUN mkdir -p /app WORKDIR /app COPY . . +RUN cargo install --locked cargo-leptos +RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu +RUN rustup target add wasm32-unknown-unknown # ENV LEPTOS_BIN_TARGET_TRIPLE="x86_64-unknown-linux-gnu" ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse RUN cargo leptos --manifest-path=./Cargo.toml build --release -vv