Skip to content

Commit

Permalink
add pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
vazw committed May 25, 2024
1 parent b8af0e4 commit 67de50f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

##
Expand Down

0 comments on commit 67de50f

Please sign in to comment.