From 163fbb74a87540178bcf79166fa6f94ac71a3e98 Mon Sep 17 00:00:00 2001 From: akarras Date: Thu, 18 Jan 2024 22:35:19 -0700 Subject: [PATCH] enable wasm_bindgen weak refs --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3e9800c4..2c29545b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ WORKDIR /app RUN apt install -y git pkg-config fontconfig libfontconfig1-dev binaryen COPY . . ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse +ENV WASM_BINDGEN_WEAKREF=1 RUN cargo leptos --manifest-path=./Cargo.toml build --release -vv FROM debian:bookworm-slim as runner @@ -35,4 +36,4 @@ ENV LEPTOS_ENVIRONMENT="production" ENV LEPTOS_SITE_ADDR="0.0.0.0:8080" ENV LEPTOS_SITE_ROOT="site" EXPOSE 8080 -CMD ["/app/ultros"] \ No newline at end of file +CMD ["/app/ultros"]