From 2292e852e5be3a727a667dce9def79c1d12f0804 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 23 Jan 2022 14:23:56 -0800 Subject: [PATCH] Switch linux-x86_64 build from Ubuntu to Alpine for musl --- build/linux.x86_64/Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/build/linux.x86_64/Dockerfile b/build/linux.x86_64/Dockerfile index f0ad16a..3112ac2 100644 --- a/build/linux.x86_64/Dockerfile +++ b/build/linux.x86_64/Dockerfile @@ -1,16 +1,10 @@ -FROM ubuntu:20.04 +FROM alpine:latest ENV TARGETNAME linux.x86_64 # Install GHC and cabal USER root -ENV DEBIAN_FRONTEND noninteractive -RUN apt-get update && apt-get install -y ghc curl xz-utils - -# So we'd like a later version of Cabal that supports --enable-executable-static, -# but we can't use Ubuntu 20.10 because coreutils has switched to new syscalls that -# the TravisCI kernel doesn't support. Download it manually. -RUN curl "https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz" | tar xJv -C /usr/bin +RUN apk add ghc cabal g++ libffi-dev curl bash # Use ld.bfd instead of ld.gold due to # x86_64-linux-gnu/libpthread.a(pthread_cond_init.o)(.note.stapsdt+0x14): error: