mu-haskell/examples/deployment/docker
Flavio Corpa 1f96833f9a Release v0.3 (#187)
Co-authored-by: Alejandro Serrano <trupill@gmail.com>
2020-04-28 18:05:40 +02:00
..
Dockerfile Update Docker example (#103) 2020-02-06 09:23:52 +01:00
hie.yaml Update Docker example (#103) 2020-02-06 09:23:52 +01:00
LICENSE Add persistent client to example 👨🏼‍💻 (#44) 2019-12-16 12:29:13 +01:00
Main.hs Run stylish-haskell in all files! 💅🏼 (#23) 2019-11-21 13:25:53 +01:00
Makefile Move 'deployment-examples' to 'examples' 2019-10-10 10:30:20 +02:00
mu-docker-example.cabal Use new server API in examples and upgrade deps ⚗️ (#178) 2020-04-15 14:04:54 +02:00
README.md Move 'deployment-examples' to 'examples' 2019-10-10 10:30:20 +02:00
stack.yaml Release v0.3 (#187) 2020-04-28 18:05:40 +02:00

Docker image for a Mu Haskell service

You can use the example Dockerfile as a starting point. There are a few elements you need to replace:

  • The lts version (line 1) should point to the same LTS release you are using in your stack.yaml file.
  • The folder in the final image is here set to mu-docker-example (lines 7 and 9). You may want to change this.
  • This Dockerfile exposes port 8080, since that is the one used by the example application.
  • The command in line 17 is made out of the folder from the current point and the name of the executable.