1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-08 08:39:26 +03:00
juvix/docker/Dockerfile-ghc-alpine-9.2.6
Paul Cadman 54d6c28127
Update stack resolver to lts-20.12 (#1873)
* Fixes https://github.com/anoma/juvix/issues/1811

This PR updates:
* The CI workflows to use GHC 9.2.6
* The stack resolver to LTS-20.12
* The cabal.project to point to stackage LTS-20.12
* The linux static build CI to use alpine GHC 9.2.6

NB: You may need to install GHC 9.2.6 and run `cabal update` before
trying the build with `cabal`.
2023-03-06 10:10:56 +01:00

31 lines
994 B
Groff

FROM alpine:3.12
RUN apk upgrade --no-cache &&\
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold lld &&\
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static xz
RUN curl https://downloads.haskell.org/~ghc/8.10-latest/ghc-8.10.7-x86_64-alpine3.10-linux-integer-simple.tar.xz -OL
RUN tar xf ghc-8.10.7-x86_64-alpine3.10-linux-integer-simple.tar.xz
RUN cd ghc-8.10.7-x86_64-unknown-linux && ./configure --prefix /opt && make install
RUN curl https://downloads.haskell.org/~ghc/9.2.6/ghc-9.2.6-src.tar.xz -OL
RUN tar xf ghc-9.2.6-src.tar.xz
WORKDIR /ghc-9.2.6
RUN GHC=/opt/bin/ghc ./configure --prefix /usr/local
RUN make -j
RUN make install
RUN apk add --no-cache clang llvm
WORKDIR /
RUN curl https://github.com/commercialhaskell/stack/releases/download/v2.9.1/stack-2.9.1-linux-x86_64.tar.gz -OL
RUN tar xf stack-2.9.1-linux-x86_64.tar.gz
RUN cp stack-2.9.1-linux-x86_64/stack /usr/local/bin