|
4 | 4 | # 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.
|
5 | 5 | # If you try to upgrade and have trouble building, it may be related to the above.
|
6 | 6 |
|
7 |
| -FROM alpine:3.16 |
| 7 | +FROM alpine:3.17 |
8 | 8 | # Install deps for:
|
9 | 9 | # - ghc/cabal: curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz tar perl zlib-dev
|
10 | 10 | # - repo clone: git
|
11 | 11 | # - static builds: zlib-static HACK(broken-ghc-musl): ncurses-static
|
12 | 12 | # - random haskell libraries with cbits (basement): binutils-gold
|
13 | 13 | # - to use embedded binaries in development (ie themis): libc6-compat
|
14 | 14 | # - 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 |
16 | 17 |
|
17 | 18 | # Install system deps for FOSSA CLI:
|
18 | 19 | RUN apk --no-cache add bash xz-libs xz-dev bzip2-dev bzip2-static upx curl jq
|
19 | 20 |
|
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 |
22 | 24 | ENV PATH="/root/.cabal/bin:/root/.ghcup/bin:$PATH"
|
23 | 25 |
|
24 | 26 | RUN ghcup install ghc 9.4.8
|
25 | 27 |
|
26 | 28 | 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 |
28 | 30 |
|
29 | 31 | # Sets USER environment to overcome issue, as described in:
|
30 | 32 | # https://github.com/cachix/install-nix-action/issues/122
|
|
0 commit comments