diff --git a/Dockerfile b/Dockerfile index 8545e57..1addd0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,16 +10,13 @@ FROM debian:bookworm-slim AS builder WORKDIR /work -RUN apt-get update && apt-get install -y clang gcc curl +RUN apt-get update && apt-get install -y clang gcc curl pkg-config RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust.sh && sh rust.sh -y RUN . "$HOME/.cargo/env" && rustup toolchain install nightly && rustup default nightly RUN . "$HOME/.cargo/env" && rustup target add wasm32-unknown-unknown RUN . "$HOME/.cargo/env" && cargo install cargo-leptos -COPY . . -COPY --from=style /node/style/ ./style/ +COPY --from=style /node/ /work/ RUN mkdir -p target/site -# after successful tests, build it -RUN . "$HOME/.cargo/env" && cargo update -p wasm-bindgen --precise 0.2.92 && cargo install -f wasm-bindgen-cli --version 0.2.92 RUN . "$HOME/.cargo/env" && RUSTFLAGS=--cfg=web_sys_unstable_apis cargo leptos build --release ##