haskell / docker-haskell

MIT License
63 stars 37 forks source link

haskell:run image #56

Closed AlistairB closed 2 years ago

AlistairB commented 2 years ago

I think it would be nice to have images like haskell:run-9.2.1-buster which has the core packages required to run a haskell binary compiled with a given version + platform.

Something like:

FROM debian:buster-slim

RUN apt-get update \
 && apt-get install -y --no-install-recommends \
    libgmp10 \
    ca-certificates \
 && rm -rf /var/lib/apt/lists/*
jmtd commented 2 years ago

libgmp10 is already installed in debian:10-slim and debian:11-slim. ca-certificates is not. I expect a lot of Haskell programs would need that, but not all: I have been experimenting with builder/runner images for my thing and I don't need ca-certificates (although I do have other dependencies I do need, so I will still need to do custom runtime images even if you provided some).

Given your resource issues (#72), I would suggest not increasing the burden of the number of images to maintain.

AlistairB commented 2 years ago

Ah good point, I did not realise libgmp10 was bundled with debian these days. In that case I tend to agree the run image desirability goes down a lot. Thanks for the info!