-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
52 lines (34 loc) · 1.29 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
<<<<<<< HEAD
# Dockerfile for Prophesy
#########################
# The Docker image can be built by executing:
# docker build -t yourusername/prophesy .
# A different stormpy base image can be set from the commandline with:
# --build-arg STORMPY_BASE=<new_base_image>
# Set stormpy base image
ARG STORMPY_BASE=movesrwth/stormpy:stable
FROM $STORMPY_BASE
MAINTAINER Matthias Volk <[email protected]>
# Install packages
RUN apt-get update -qq
RUN apt-get install -y --no-install-recommends \
z3
# Virtual environment is already used from parent stormpy image
#ENV VIRTUAL_ENV=/opt/venv
#ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Build Prophesy
################
RUN mkdir /opt/prophesy
WORKDIR /opt/prophesy
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install pytest
# Copy the content of the current local Prophesy repository into the Docker image
COPY . .
# Build Prophesy
RUN python setup.py develop --search-path /opt
# Uncomment to build optional dependencies
#RUN pip install -e '.[pdf]'"
# Usually, call prophesy-write-config.py. However, as we have full control over the docker, we write the config by hand.
COPY docker/.container-prophesy.cfg /opt/prophesy/prophesy/prophesy.cfg
COPY docker/.container-dependencies.cfg /opt/prophesy/prophesy/dependencies.cfg