Skip to content

Commit 93863bf

Browse files
committed
Playing with ghcup as an install method
1 parent d9bf04e commit 93863bf

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

8.10/ghcup/Dockerfile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM debian:buster AS builder
2+
3+
ENV LANG C.UTF-8
4+
5+
RUN apt-get update && \
6+
apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
build-essential \
9+
libffi-dev \
10+
libffi6 \
11+
libgmp-dev \
12+
libgmp10 \
13+
libncurses-dev \
14+
libncurses5 \
15+
libtinfo5 \
16+
curl && \
17+
rm -rf /var/lib/apt/lists/*
18+
19+
ARG GHCUP_VERSION=0.1.16.2
20+
21+
RUN curl -fSL https://downloads.haskell.org/~ghcup/$GHCUP_VERSION/x86_64-linux-ghcup-$GHCUP_VERSION -o ghcup && \
22+
chmod +x ghcup
23+
24+
ARG CABAL_VERSION=3.4.0.0
25+
26+
RUN ./ghcup install cabal $CABAL_VERSION && \
27+
./ghcup set cabal $CABAL_VERSION
28+
29+
ARG GHC_VERSION=8.10.6
30+
31+
RUN ./ghcup install ghc $GHC_VERSION && \
32+
./ghcup set ghc $GHC_VERSION
33+
34+
ARG STACK_VERSION=2.7.3
35+
36+
RUN ./ghcup install stack $STACK_VERSION && \
37+
./ghcup set stack $STACK_VERSION
38+
39+
RUN cp -H /root/.ghcup/bin/* /usr/local/bin

0 commit comments

Comments
 (0)