Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

chore: update the docker for wasm (#8080)

Jeeva Ramachandran564208002552
diff --git a/crates/euclid_wasm/Cargo.toml b/crates/euclid_wasm/Cargo.toml
index 42480b5ed4..bf9a566f71 100644
--- a/crates/euclid_wasm/Cargo.toml
+++ b/crates/euclid_wasm/Cargo.toml
@@ -36,6 +36,8 @@ serde = { version = "1.0", features = [] }
serde-wasm-bindgen = "0.6.5"
strum = { version = "0.26", features = ["derive"] }
wasm-bindgen = { version = "0.2.99" }
+[package.metadata.wasm-pack.profile.release]
+wasm-opt = ["--enable-bulk-memory", "--enable-nontrapping-float-to-int"]
[lints]
workspace = true
diff --git a/docker/wasm-build.Dockerfile b/docker/wasm-build.Dockerfile
index faa2d211bd..227e1a53a3 100644
--- a/docker/wasm-build.Dockerfile
+++ b/docker/wasm-build.Dockerfile
@@ -19,7 +19,6 @@ COPY . .
RUN echo env
RUN cargo install wasm-pack
RUN wasm-pack build --target web --out-dir /tmp/wasm --out-name euclid crates/euclid_wasm -- --features ${VERSION_FEATURE_SET},${FEATURES}
-
FROM scratch
-COPY --from=builder /tmp/wasm /tmp
+COPY --from=builder /tmp/wasm /tmp
\ No newline at end of file