Skip to content

Commit 8a9bed1

Browse files
committed
Update linux.x86_64 image
1 parent 29b1bf3 commit 8a9bed1

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

builders/linux.x86_64/Dockerfile

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
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
69

710
ENV TARGETNAME=linux.x86_64
811

912
# Install GHC and cabal
1013
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
1215

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
1722

1823
# Other archs pre-build dependencies here, but this one doesn't to detect ecosystem movement
24+
RUN true
1925

2026
# Copy the build script
2127
COPY build /usr/bin

0 commit comments

Comments
 (0)