| 1 |
FROM registry.gitlab.com/sosy-lab/benchmarking/competition-scripts/user:latest AS base |
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y \ |
| 4 |
autoconf \ |
| 5 |
build-essential \ |
| 6 |
# meson \ |
| 7 |
# ninja-build \ |
| 8 |
python3 |
| 9 |
|
| 10 |
RUN pip3 install meson ninja |
| 11 |
|
| 12 |
WORKDIR /src |
| 13 |
|
| 14 |
# Compile binary |
| 15 |
FROM base as binary-builder |
| 16 |
COPY bitwuzla-src.tar.xz . |
| 17 |
RUN tar --strip-components=1 -xf bitwuzla-src.tar.xz |
| 18 |
RUN meson setup build --buildtype release --force-fallback-for=cadical,gmp,symfpu |
| 19 |
RUN cd build && ninja |
| 20 |
|
| 21 |
# Copy bitwuzla binary |
| 22 |
FROM scratch as bitwuzla_binary |
| 23 |
COPY --from=binary-builder /src/build/src/main/bitwuzla /bin/ |
| 24 |
ENTRYPOINT [ "/bin/bitwuzla" ] |