Skip to content

Commit

Permalink
fix: install toolchains inside app directory to use rust nightly version
Browse files Browse the repository at this point in the history
  • Loading branch information
akarras committed Nov 9, 2023
1 parent 1725fa2 commit 0beee6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0beee6f

Please sign in to comment.