您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Dockerfile 603B

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