1234567891011121314151617181920212223 |
- FROM rust:latest
-
- # Copy a source code
- COPY web-client /build/web-client
- COPY near-rpc /build/near-rpc
- COPY common-api /build/common-api
- COPY near-primitives-light /build/near-primitives-light
-
- WORKDIR /build/web-client
-
- # Install the latest wasm-pack
- RUN apt-get update && apt-get upgrade -y
- RUN apt-get install -y curl
- RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
-
- # Install chrome and driver for headless tesitng
- RUN apt-get install -y chromium
- RUN apt-get install -y chromium-driver
-
- ENV WASM_BINDGEN_TEST_TIMEOUT=120
-
- # Run tests
- CMD wasm-pack test --headless --chrome
|