Skip to content

Commit 938b9af

Browse files
committed
Use the script from get-ghcup.haskell.org.
1 parent d69da61 commit 938b9af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ghc-9.8.2/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ RUN apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurse
1111
# Install system deps for FOSSA CLI:
1212
RUN apk --no-cache add bash xz-libs xz-dev bzip2-dev bzip2-static upx curl jq
1313

14-
# manual installation of ghcup -- the install script doesn't work headless
15-
RUN mkdir -p ~/.ghcup/bin && curl https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > ~/.ghcup/bin/ghcup && chmod +x ~/.ghcup/bin/ghcup
14+
ENV BOOTSTRAP_HASKELL_NONINTERACTIVE=1
15+
ENV BOOTSTRAP_HASKELL_MINIMAL=1
1616
ENV PATH="/root/.cabal/bin:/root/.ghcup/bin:$PATH"
17+
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
1718

1819
RUN ghcup install ghc 9.8.2
1920

0 commit comments

Comments
 (0)