From 36e1955f06d87319d867fabe88e5f8cc45e0a5a0 Mon Sep 17 00:00:00 2001 From: Igor Ranieri Date: Sun, 5 Oct 2025 18:43:21 +0200 Subject: [PATCH] Updated dockerfile. --- Dockerfile | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2919c5..5c84af4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,36 +1,21 @@ -FROM haskell:9.10.2-bullseye AS builder - -RUN apt-get update && apt-get install -y curl git && rm -rf /var/lib/apt/lists/* - -RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ - apt-get install -y nodejs && \ - rm -rf /var/lib/apt/lists/* - -RUN cabal update && \ - cabal install --install-method=copy --installdir=/usr/local/bin \ - fourmolu hlint cabal-gild - -WORKDIR /workspace - -FROM haskell:9.10.2-bullseye +FROM haskell:9.12.2-slim-bookworm RUN apt-get update && apt-get install -y \ - libgmp10 \ curl \ + git \ + libgmp10 \ && rm -rf /var/lib/apt/lists/* +# Install Node.js RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ apt-get install -y nodejs && \ rm -rf /var/lib/apt/lists/* -RUN cabal update - -COPY --from=builder /usr/local/bin/cabal /usr/local/bin/ -COPY --from=builder /usr/local/bin/fourmolu /usr/local/bin/ -COPY --from=builder /usr/local/bin/hlint /usr/local/bin/ -COPY --from=builder /usr/local/bin/cabal-gild /usr/local/bin/ +# Install Haskell tools +RUN cabal update && \ + cabal install --install-method=copy --installdir=/usr/local/bin \ + fourmolu hlint cabal-gild && \ + rm -rf ~/.cabal/packages ~/.cabal/store WORKDIR /workspace - -CMD [ "bash" ] - +CMD ["bash"]