https://github.com/alextanhongpin/haskell-docker
Dockerizing your haskell app
https://github.com/alextanhongpin/haskell-docker
docker haskell haskell-docker
Last synced: 7 months ago
JSON representation
Dockerizing your haskell app
- Host: GitHub
- URL: https://github.com/alextanhongpin/haskell-docker
- Owner: alextanhongpin
- License: bsd-3-clause
- Created: 2017-09-22T04:20:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T02:14:33.000Z (over 8 years ago)
- Last Synced: 2025-03-24T16:27:18.767Z (10 months ago)
- Topics: docker, haskell, haskell-docker
- Language: Haskell
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# haskell-docker
This is an example of dockerizing haskell on macosx.
## Export the path to the .bashrc or .zshrc
```
$ export PATH=$HOME/.local/bin:$PATH
```
## Stack
```bash
$ stack docker pull
# Build your haskell stack
$ stack build
# Copied executables to .stack-work/docker/_home/.local/bin:
# - haskell-docker-exe
$ stack install
# Build the base image, and the use the base image to hold the haskell binary
$ stack image container
# View the docker image created
# ubuntu-hs-haskell-docker-exe:latest
$ docker images
# Test to see it works
$ stack exec haskell-docker-exe
```