# Dockerfiles for JS and Wasm backends

**URL:** <https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994>\
**Category:** Show and Tell\
**Created:** [March 15, 2023, 9:05am UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994 "2023-03-15T09:05:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aratamizuki](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/aratamizuki/32/1633_2.png) [@aratamizuki](https://discourse.haskell.org/u/aratamizuki)\
**Post date:** [March 15, 2023, 9:05am UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994/1 "2023-03-15T09:05:24Z")

</div>

I’ve written Dockerfiles for GHC 9.6.1’s JavaScript backend and WebAssembly backend. They are buildable on amd64 and arm64.

I hope they help you try the new backends.

> **[GitHub - minoki/ghc-docker: Dockerfile(s) for GHC](https://github.com/minoki/ghc-docker)**
>
> Dockerfile(s) for GHC. Contribute to minoki/ghc-docker development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![artem](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/artem/32/56_2.png) [@artem](https://discourse.haskell.org/u/artem)\
**Post date:** [March 15, 2023, 7:39pm UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994/2 "2023-03-15T19:39:29Z")

</div>

> [@aratamizuki](#):
>
> They are buildable on amd64 and arm64.

Is one of the amd64 a typo or is it a way to refer to amd128? 😁

---

<div class="post-metadata">

**Author:** ![aratamizuki](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/aratamizuki/32/1633_2.png) [@aratamizuki](https://discourse.haskell.org/u/aratamizuki)\
**Post date:** [March 17, 2023, 4:36am UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994/3 "2023-03-17T04:36:49Z")

</div>

I mean amd64 (aka x86\_64) and arm64 (aka aarch64).

---

<div class="post-metadata">

**Author:** ![artem](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/artem/32/56_2.png) [@artem](https://discourse.haskell.org/u/artem)\
**Post date:** [March 17, 2023, 11:02pm UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994/4 "2023-03-17T23:02:00Z")

</div>

Oh God, how embarrassing! Thanks for the clarification.

---

<div class="post-metadata">

**Author:** ![brandonchinn178](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/brandonchinn178/32/5103_2.png) [@brandonchinn178](https://discourse.haskell.org/u/brandonchinn178)\
**Post date:** [March 19, 2023, 7:27pm UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994/5 "2023-03-19T19:27:14Z")

</div>

Thanks! Much better than my attempt: [GitHub - brandonchinn178/ghcjs-docker](https://github.com/brandonchinn178/ghcjs-docker)

---

<div class="post-metadata">

**Author:** ![hsyl20](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hsyl20](https://discourse.haskell.org/u/hsyl20)\
**Post date:** [March 20, 2023, 9:14am UTC](https://discourse.haskell.org/t/dockerfiles-for-js-and-wasm-backends/5994/6 "2023-03-20T09:14:07Z")

</div>

You may want to apply the 3 patches at [Commits · hsyl20/ghc-9.6-js · Sylvain Henry / Glasgow Haskell Compiler · GitLab](https://gitlab.haskell.org/hsyl20/ghc/-/commits/hsyl20/ghc-9.6-js) to get TH support too 😉
