Dockerfile.
Sample stack.yaml configuration using this image.
This is based on dplusic/stack-ghcjs and features a patched GHCJSi with enabled static file server support for GHCJSi.
Typical usage:
export GHCJSI_STATIC_DIR=/path/to/static/files
stack ghci --docker \
--docker-mount "${GHCJSI_STATIC_DIR}" \
--docker-env "GHCJSI_STATIC_DIR=${GHCJSI_STATIC_DIR}"
When GHCJSi is loaded go to http://localhost:6401 for default GHCJSi session or to http://localhost:6401/customSession.html (if you have customSession.html in your static files directory).
A real-world project that uses the image: https://github.com/fizruk/miso-aframe See also upstream pull request to add static files support to GHCJSi: https://github.com/ghcjs/ghcjs/pull/616
Content type
Image
Digest
Size
2.7 GB
Last updated
over 7 years ago
docker pull fizruk/stack-ghcjs:ar-cube