Skip to content

Commit a9df8f3

Browse files
committed
docker: build echidna with musl
1 parent a870f7f commit a9df8f3

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

docker/Dockerfile

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
FROM ubuntu:noble AS builder-echidna
2-
ENV LD_LIBRARY_PATH=/usr/local/lib PREFIX=/usr/local HOST_OS=Linux
3-
RUN apt-get update && \
4-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-suggests --no-install-recommends \
1+
FROM docker.io/benz0li/ghc-musl:9.8.4 AS builder-echidna
2+
# https://gitlab.com/benz0li/ghc-musl
3+
4+
RUN apk upgrade --no-cache &&\
5+
apk add --no-cache \
6+
autoconf \
7+
automake \
8+
binutils-gold \
59
cmake \
6-
curl \
7-
git \
8-
libbz2-dev \
9-
libgmp-dev \
10-
libreadline-dev \
11-
libsecp256k1-dev \
12-
libssl-dev \
13-
software-properties-common \
14-
sudo
15-
RUN curl -sSL https://get.haskellstack.org/ | sh
10+
libtool
11+
12+
RUN mkdir -p /etc/stack &&\
13+
{ echo "system-ghc: true" ;\
14+
echo "install-ghc: false" ;\
15+
echo "skip-ghc-check: true" ;\
16+
} >> /etc/stack/config.yaml
17+
18+
ENV LD_LIBRARY_PATH=/usr/local/lib PREFIX=/usr/local HOST_OS=Linux
1619
COPY . /echidna/
1720
WORKDIR /echidna
21+
RUN .github/scripts/install-libsecp256k1.sh
1822
RUN .github/scripts/install-libff.sh
1923
RUN stack upgrade && stack setup && stack install --flag echidna:static --extra-include-dirs=/usr/local/include --extra-lib-dirs=/usr/local/lib
2024

0 commit comments

Comments
 (0)