Adding docker image
This commit is contained in:
parent
7756aa7867
commit
de969f461b
1 changed files with 30 additions and 0 deletions
30
Dockerfile
Normal file
30
Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue