Skip to content

Commit 2088ea8

Browse files
committed
WIP, there are no alpine aarch bindists linked with musl though. So this is a dead end.
1 parent 99ced1b commit 2088ea8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ghc-9.4.8/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@
44
# There is a workaround script, but I don't think it's worth it since alpine:3.16 is still maintained as of 9/2023.
55
# If you try to upgrade and have trouble building, it may be related to the above.
66

7-
FROM alpine:3.16
7+
FROM alpine:3.17
88
# Install deps for:
99
# - ghc/cabal: curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz tar perl zlib-dev
1010
# - repo clone: git
1111
# - static builds: zlib-static HACK(broken-ghc-musl): ncurses-static
1212
# - random haskell libraries with cbits (basement): binutils-gold
1313
# - to use embedded binaries in development (ie themis): libc6-compat
1414
# - for nix installation via github action cachix/install-nix-action: sudo
15-
RUN apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static libffi-dev make xz tar perl zlib-dev zlib-static bash sudo libc6-compat git-lfs
15+
# - for running ghcup on alpine: ncurses-libs (libtinfo.so)
16+
RUN apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static ncurses-libs libffi-dev make xz tar perl zlib-dev zlib-static bash sudo libc6-compat git-lfs
1617

1718
# Install system deps for FOSSA CLI:
1819
RUN apk --no-cache add bash xz-libs xz-dev bzip2-dev bzip2-static upx curl jq
1920

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

2426
RUN ghcup install ghc 9.4.8
2527

2628
RUN ghcup set ghc 9.4.8
27-
RUN ghcup install cabal 3.10.2.0
29+
RUN ghcup install cabal 3.10.3.0
2830

2931
# Sets USER environment to overcome issue, as described in:
3032
# https://github.com/cachix/install-nix-action/issues/122

0 commit comments

Comments
 (0)