123456789101112131415161718192021 |
- FROM rust:latest
-
- # Copy a source code
- COPY web-client /build/web-client
- COPY common-api /build/common-api
-
- 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
|