Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 committed Jan 6, 2025
1 parent 8e88406 commit d858b9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/wasm-build.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM rust:latest as builder

ARG RUN_ENV=sandbox
ARG EXTRA_FEATURES=""
ARG FEATURES=""
ARG VERSION_FEATURE_SET="v1"

RUN apt-get update \
Expand All @@ -19,7 +18,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 ${VERSION_FEATURE_SET},${RUN_ENV},${EXTRA_FEATURES}
RUN wasm-pack build --target web --out-dir /tmp/wasm --out-name euclid crates/euclid_wasm -- --features ${VERSION_FEATURE_SET},${FEATURES}

FROM scratch

Expand Down

0 comments on commit d858b9b

Please sign in to comment.