|
1 | | -FROM alpine:3.16 |
2 | | -# alpine:3.16 (GHC 9.0.1): 5.8 megabytes |
3 | | -# alpine:3.17 (GHC 9.0.2): 15.0 megabytes |
4 | | -# alpine:3.18 (GHC 9.4.4): 29.0 megabytes |
5 | | -# alpine:3.19 (GHC 9.4.7): 29.0 megabytes |
| 1 | +FROM alpine:3.22 |
| 2 | +# alpine:3.16 (GHC 9.0.1): 5.8 megabytes (certs expired) |
| 3 | +# alpine:3.17 (GHC 9.0.2): 15.0 megabytes (certs expired) |
| 4 | +# alpine:3.18 (GHC 9.4.4): 29.0 megabytes (certs expired) |
| 5 | +# alpine:3.19 (GHC 9.4.7): 29.0 megabytes (certs expired) |
| 6 | +# alpine:3.20 (GHC 9.8.2): 16.0 megabytes |
| 7 | +# alpine:3.21 (GHC 9.8.2): 16.0 megabytes |
| 8 | +# alpine:3.22 (GHC 9.8.2): 16.0 megabytes |
6 | 9 |
|
7 | 10 | ENV TARGETNAME=linux.x86_64 |
8 | 11 |
|
9 | 12 | # Install GHC and cabal |
10 | 13 | USER root |
11 | | -RUN apk add ghc cabal g++ libffi-dev curl bash |
| 14 | +RUN apk add ghc cabal g++ libffi-dev curl bash gmp gmp-static |
12 | 15 |
|
13 | | -# Use ld.bfd instead of ld.gold due to |
14 | | -# x86_64-linux-gnu/libpthread.a(pthread_cond_init.o)(.note.stapsdt+0x14): error: |
15 | | -# relocation refers to local symbol "" [2], which is defined in a discarded section |
16 | | -ENV CABALOPTS="--ghc-options;-optl-Wl,-fuse-ld=bfd -split-sections -optc-Os -optc-Wl,--gc-sections" |
| 16 | +# Cabal has failed to cache if options are not specified on the command line, |
| 17 | +# so do that explicitly. |
| 18 | +ENV CABALOPTS="--ghc-options;-split-sections -optc-Os -optc-Wl,--gc-sections" |
| 19 | + |
| 20 | +# Verify that we have the certificates in place to successfully update cabal |
| 21 | +RUN cabal update && rm -rf ~/.cabal |
17 | 22 |
|
18 | 23 | # Other archs pre-build dependencies here, but this one doesn't to detect ecosystem movement |
| 24 | +RUN true |
19 | 25 |
|
20 | 26 | # Copy the build script |
21 | 27 | COPY build /usr/bin |
|
0 commit comments