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

fix(docker): add `version_feature_set` build arg with default as `v1` in wasm build dockerfile (#5813)

Sai Harsha Vardhan402652eeb76c
diff --git a/docker/wasm-build.Dockerfile b/docker/wasm-build.Dockerfile
index bddcacdfc6..015a055e4f 100644
--- a/docker/wasm-build.Dockerfile
+++ b/docker/wasm-build.Dockerfile
@@ -2,6 +2,7 @@ FROM rust:latest as builder
ARG RUN_ENV=sandbox
ARG EXTRA_FEATURES=""
+ARG VERSION_FEATURE_SET="v1"
RUN apt-get update \
&& apt-get install -y clang libssl-dev pkg-config
@@ -18,7 +19,7 @@ ENV env=$env
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 ${RUN_ENV},${EXTRA_FEATURES}
+RUN wasm-pack build --target web --out-dir /tmp/wasm --out-name euclid crates/euclid_wasm -- --features ${VERSION_FEATURE_SET},${RUN_ENV},${EXTRA_FEATURES}
FROM scratch