forked from vprover/vampire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 794 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM debian:12.10 AS builder
USER root
# Install required software
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt install -y git cmake clang
# Build Vampire
WORKDIR /home
ARG branch=master
# Check out Vampire
RUN git clone https://github.com/vprover/vampire --branch $branch --single-branch
# Check out submodules
WORKDIR /home/vampire
RUN git submodule update --init --depth=1
# Build Z3
WORKDIR /home/vampire/z3/build
RUN cmake .. -DZ3_SINGLE_THREADED=TRUE -DZ3_BUILD_LIBZ3_SHARED=FALSE
RUN make -j4
# Build Vampire
WORKDIR /home/vampire/build
RUN cmake .. -DBUILD_SHARED_LIBS=0
RUN make -j4
# Create runner container
FROM alpine:3.21
COPY --from=builder /home/vampire/build/vampire /usr/bin/vampire
ENV PATH=$PATH:/usr/bin/
WORKDIR /home/vampire
ENTRYPOINT [ "vampire" ]