mu-haskell/examples/deployment/docker
2019-12-16 12:29:13 +01:00
..
Dockerfile Move 'deployment-examples' to 'examples' 2019-10-10 10:30:20 +02: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 Move 'deployment-examples' to 'examples' 2019-10-10 10:30:20 +02:00
README.md Move 'deployment-examples' to 'examples' 2019-10-10 10:30:20 +02:00
stack.yaml Depend on released versions of packages instead of git commits 2019-11-04 16:30:26 +01: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.