-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
40 lines (30 loc) · 1.01 KB
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
# Dockerfile for dftlib
#######################
# The Docker image can be built by executing:
# docker build -t yourusername/dftlib .
# 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
LABEL org.opencontainers.image.authors="m.volk@tue.nl"
# Configuration arguments
#########################
# The arguments can be set from the commandline with:
# --build-arg <arg_name>=<value>
# Optional support to install for dftlib, such as '[test,stormpy]'
ARG options=""
# Set-up virtual environment
############################
ENV VIRTUAL_ENV=/opt/venv
# Uncomment if no virtual environment is present in STORMPY_BASE
#RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Build dftlib
###############
RUN mkdir /opt/dftlib
WORKDIR /opt/dftlib
# Copy the content of the current local repository into the Docker image
COPY . .
# Build dftlib
RUN pip install -v .$options