build.sh 394 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -e
  3. # build an Emscripten SDK Docker image with Hunspell's build dependencies installed
  4. docker build --pull --tag overleaf/emsdk .
  5. # compile Hunspell to WASM and copy the output files from the Docker container
  6. docker run --rm \
  7. --workdir /opt \
  8. --volume "$(pwd)/wasm":/wasm \
  9. --volume "$(pwd)/compile.sh":/opt/compile.sh:ro \
  10. overleaf/emsdk \
  11. bash compile.sh