Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature:Autograding] Add Haskell image #45

Merged
merged 16 commits into from
Sep 13, 2024
25 changes: 25 additions & 0 deletions dockerfiles/haskell/3.0.0.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:22.04

# Install necessary dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils curl build-essential libffi-dev libffi8 libgmp10 \
libgmp-dev libncurses-dev libncurses5 libtinfo5 pkg-config \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*

# Install GHCup (Haskell toolchain manager)
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | bash -s -- -y

# Add GHCup to the PATH
ENV PATH="/root/.ghcup/bin:${PATH}"

# Install GHC 8.8.4 and Cabal using GHCup
RUN ghcup install ghc 8.8.4 \
&& ghcup set ghc 8.8.4 \
&& ghcup install cabal \
&& cabal update

WORKDIR /usr/src/app

CMD ["/bin/bash"]
3 changes: 3 additions & 0 deletions dockerfiles/haskell/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pushLatest": false
}
Loading