Skip to content

Commit fb95a5a

Browse files
committed
Add xz-static for alpine 3.17 based builds.
1 parent bbf3bda commit fb95a5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ghc-9.8.2/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FROM alpine:3.17
66
# - random haskell libraries with cbits (basement): binutils-gold
77
# - to use embedded binaries in development (ie themis): libc6-compat
88
# - for nix installation via github action cachix/install-nix-action: sudo
9-
RUN apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static libffi-dev make xz tar perl zlib-dev zlib-static bash sudo libc6-compat git-lfs
9+
RUN apk --no-cache add binutils-gold curl gcc g++ git gmp-dev ncurses-dev ncurses-static libffi-dev make xz xz-static tar perl zlib-dev zlib-static bash sudo libc6-compat git-lfs
1010

1111
# Install system deps for FOSSA CLI:
1212
RUN apk --no-cache add bash xz-libs xz-dev bzip2-dev bzip2-static upx curl jq
@@ -16,7 +16,8 @@ ENV BOOTSTRAP_HASKELL_MINIMAL=1
1616
ENV PATH="/root/.cabal/bin:/root/.ghcup/bin:$PATH"
1717
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
1818

19-
RUN ghcup install ghc 9.8.2
19+
# Delete the documentation, we don't really need it.
20+
RUN ghcup install ghc 9.8.2 && rm -rf "$HOME/.ghcup/share/doc/*"
2021

2122
RUN ghcup set ghc 9.8.2
2223
RUN ghcup install cabal 3.10.3.0

0 commit comments

Comments
 (0)