https://github.com/thma/scratchhaskell
A minimal docker image providing all runtime libs required by Haskell programs at runtime. But nothing else
https://github.com/thma/scratchhaskell
Last synced: over 1 year ago
JSON representation
A minimal docker image providing all runtime libs required by Haskell programs at runtime. But nothing else
- Host: GitHub
- URL: https://github.com/thma/scratchhaskell
- Owner: thma
- License: apache-2.0
- Created: 2018-06-02T09:50:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:31:24.000Z (over 2 years ago)
- Last Synced: 2025-02-09T17:32:47.629Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScratchHaskell
a minimal docker image providing all runtime libs required by Haskell programs at runtime. But nothing else.
## basic idea
The basic idea behind this project is to provide a streamlined docker image that provides
all runtime infrastructure required by Haskell applications but maintains a small footprint (< 5 MB).
After building the ScratchHaskell image you can derive runtime images for your haskell applications as shown in the following
example Dockerfile:
```
FROM scratch-haskell
# copy the actual executable
COPY ./.stack-work/install/x86_64-linux-nopie/lts-11.2/8.2.2/bin/HsWiki /hswiki
# add further application specific configuration
# create content mountpoint
COPY content /content
# expose http port to outside world
EXPOSE 3000
# startup the server
CMD ["/hswiki"]
```