Skip to content

Commit d18abe6

Browse files
authored
Merge pull request #5876 from commercialhaskell/fix5871
Fix #5871 For AArch64, use Debian 10 rather than Ubuntu 20.04
2 parents 0c2352b + 55f502d commit d18abe6

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

etc/dockerfiles/arm64.Dockerfile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
FROM ubuntu:20.04
1+
# Stack is built with GHC 9.2.4. GHC 9.2.4 for Linux/AArch64 says it was made on
2+
# a Debian 10 system and requires GMP 6.1. Debian 10 is codename 'buster' and
3+
# includes libc6 (2.28-10+deb10u1).
4+
FROM debian:buster
25

36
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
4-
curl build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 libnuma-dev xz-utils \
5-
g++ gcc libc6-dev libffi-dev libgmp-dev make zlib1g-dev git gnupg netbase
7+
curl build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 \
8+
libncurses-dev libncurses5 libtinfo5 libnuma-dev xz-utils g++ gcc \
9+
libc6-dev libffi-dev libgmp-dev make zlib1g-dev git gnupg netbase
610

711
RUN cd /tmp && \
812
curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/clang+llvm-9.0.1-aarch64-linux-gnu.tar.xz --output /tmp/llvm.tar.xz && \
913
unxz /tmp/llvm.tar.xz && \
1014
tar xfv /tmp/llvm.tar --strip-components 1 -C /usr && \
1115
rm /tmp/llvm.tar
1216

13-
RUN curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.7.1/stack-2.7.1-linux-aarch64.bin > /usr/local/bin/stack && \
14-
chmod +x /usr/local/bin/stack
17+
RUN curl -L https://downloads.haskell.org/ghcup/unofficial-bindists/stack/2.7.5/stack-2.7.5-linux-aarch64.tar.gz --output /tmp/stack.tar.gz && \
18+
tar xfv /tmp/stack.tar.gz -C /usr/local/bin && \
19+
rm /tmp/stack.tar.gz
20+
21+
# RUN curl -sSL https://github.com/commercialhaskell/stack/releases/download/v2.7.1/stack-2.7.1-linux-aarch64.bin > /usr/local/bin/stack && \
22+
RUN chmod +x /usr/local/bin/stack
1523

1624
ARG USERID
1725
ARG GROUPID

0 commit comments

Comments
 (0)