Updated dockerfile.
Some checks failed
Haskell CI / build (pull_request) Failing after 2m50s
Haskell CI / test (pull_request) Has been skipped
Haskell CI / fourmolu (pull_request) Has been skipped
Haskell CI / hlint (pull_request) Has been skipped

This commit is contained in:
Igor Ranieri 2025-10-05 18:43:21 +02:00
parent 43be9e3f7f
commit 36e1955f06

View file

@ -1,36 +1,21 @@
FROM haskell:9.10.2-bullseye AS builder FROM haskell:9.12.2-slim-bookworm
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
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libgmp10 \
curl \ curl \
git \
libgmp10 \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \ apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN cabal update # Install Haskell tools
RUN cabal update && \
COPY --from=builder /usr/local/bin/cabal /usr/local/bin/ cabal install --install-method=copy --installdir=/usr/local/bin \
COPY --from=builder /usr/local/bin/fourmolu /usr/local/bin/ fourmolu hlint cabal-gild && \
COPY --from=builder /usr/local/bin/hlint /usr/local/bin/ rm -rf ~/.cabal/packages ~/.cabal/store
COPY --from=builder /usr/local/bin/cabal-gild /usr/local/bin/
WORKDIR /workspace WORKDIR /workspace
CMD ["bash"] CMD ["bash"]