An open API service indexing awesome lists of open source software.

https://github.com/lambdageek/docker-haskell-multistage-sample

Sample Haskell project using a multi-stage Dockerfile for build and deployment
https://github.com/lambdageek/docker-haskell-multistage-sample

docker dockerfile haskell sample

Last synced: about 1 month ago
JSON representation

Sample Haskell project using a multi-stage Dockerfile for build and deployment

Awesome Lists containing this project

README

          

# Sample multi-stage `Dockerfile` for Haskell development

Based on https://github.com/phadej/docker-haskell-example but using
the `haskell:8.10` image rather than `ubuntu` for development, and deploying into `debian`.

Also instead of relying on `cabal-plan` to get the app out of `dist-newstyle/`, we just use `cabal v2-install` to copy a static binary to a known location

There's a `Makefile` fragment with commands:

```console
$ make -f docker.make image # builds the image
$ make -f docker.make run # runs the container
$ make -f docker.make clean # delete dangling images
```