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

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

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"]
```