diff --git a/Dockerfile b/Dockerfile index be4859c..b0b6aea 100755 --- a/Dockerfile +++ b/Dockerfile @@ -35,14 +35,12 @@ RUN --mount=type=ssh git clone -b dev ssh://git@git.4nkweb.com/4nk/sdk_client.gi # Build du WebAssembly (cargo) + wasm-bindgen WORKDIR /build/sdk_client -# Activer les reference-types au moment de la compilation et de la génération JS -ENV RUSTFLAGS="-C target-feature=+reference-types" +# Build standard sans reference-types (compatibilité wasm-bindgen) RUN --mount=type=ssh cargo build --target wasm32-unknown-unknown --profile dev && \ wasm-bindgen target/wasm32-unknown-unknown/debug/sdk_client.wasm \ --out-dir /build/ihm_client/pkg \ --typescript \ --target bundler \ - --reference-types \ --debug FROM node:20-alpine