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
- Host: GitHub
- URL: https://github.com/lambdageek/docker-haskell-multistage-sample
- Owner: lambdageek
- License: mit
- Created: 2020-07-25T01:27:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T00:49:11.000Z (almost 6 years ago)
- Last Synced: 2026-04-24T07:09:13.113Z (2 months ago)
- Topics: docker, dockerfile, haskell, sample
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
```