You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 517B

123456789101112131415161718192021
  1. FROM rust:latest
  2. # Copy a source code
  3. COPY web-client /build/web-client
  4. COPY common-api /build/common-api
  5. WORKDIR /build/web-client
  6. # Install the latest wasm-pack
  7. RUN apt-get update && apt-get upgrade -y
  8. RUN apt-get install -y curl
  9. RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  10. # Install chrome and driver for headless tesitng
  11. RUN apt-get install -y chromium
  12. RUN apt-get install -y chromium-driver
  13. ENV WASM_BINDGEN_TEST_TIMEOUT=120
  14. # Run tests
  15. CMD wasm-pack test --headless --chrome