-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
39 lines (30 loc) · 1.26 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
FROM hbpmip/python-mip:0.6.8
MAINTAINER [email protected]
ENV DOCKER_IMAGE=hbpmip/python-jsi-hedwig:1.0.9 \
FUNCTION=python-jsi-hedwig
COPY requirements.txt /src/requirements.txt
# Install system packages
RUN apt-get update \
&& apt-get install -y git gcc python3-dev \
&& python -m pip install --upgrade pip \
&& pip install -r /src/requirements.txt
COPY hedwig/ /src/hedwig
COPY doc/ /src/doc/
WORKDIR /src/hedwig
RUN pip install -r requirements.txt
RUN python setup.py install
COPY preprocess.py /src/hedwig/
COPY mip_hedwig.py /src/hedwig/
ENTRYPOINT ["python", "/src/hedwig/mip_hedwig.py"]
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="hbpmip/python-jsi-hedwig" \
org.label-schema.description="Hedwig method for semantic subgroup discovery" \
org.label-schema.url="https://github.com/LREN-CHUV/algorithm-repository" \
org.label-schema.vcs-type="git" \
org.label-schema.vcs-url="https://github.com/LREN-CHUV/algorithm-repository.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version="$VERSION" \
org.label-schema.vendor="JSI KT" \
org.label-schema.license="MIT" \
org.label-schema.docker.dockerfile="Dockerfile" \
org.label-schema.schema-version="1.0"