Adding docker image
Some checks failed
Haskell CI / build (pull_request) Has been cancelled
Haskell CI / test (pull_request) Has been cancelled
Haskell CI / fourmolu (pull_request) Has been cancelled
Haskell CI / hlint (pull_request) Has been cancelled

This commit is contained in:
Igor Ranieri 2025-09-27 09:56:06 +02:00
parent 7756aa7867
commit de969f461b

30
Dockerfile Normal file
View file

@ -0,0 +1,30 @@
FROM haskell:9.10
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js (for GitHub Actions compatibility)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# Update cabal and install Haskell tools
RUN cabal update && \
cabal install --install-method=copy --installdir=/usr/local/bin \
fourmolu \
hlint \
cabal-gild
# Verify installations
RUN ghc --version && \
cabal --version && \
node --version && \
fourmolu --version && \
hlint --version && \
cabal-gild --version
# Set working directory
WORKDIR /workspace