-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (30 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
43 lines (30 loc) · 1.24 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
41
42
43
## Run unit tests
FROM hbpmip/python-base-build:0.4.5
COPY requirements-dev.txt /requirements-dev.txt
RUN pip install -r /requirements-dev.txt
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
COPY anova.py /src/anova.py
COPY tests/unit/ /src/tests/unit/
WORKDIR /src
RUN python -m pytest tests/unit/ -x --ff --capture=no
## Build target image
FROM hbpmip/python-mip:0.7.8
ENV DOCKER_IMAGE=hbpmip/python-anova:0.4.5 \
FUNCTION=python-anova
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
COPY anova.py /anova.py
ENTRYPOINT ["python", "/anova.py"]
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="hbpmip/python-anova" \
org.label-schema.description="Python implementation of Anova" \
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="LREN CHUV" \
org.label-schema.license="AGPLv3" \
org.label-schema.docker.dockerfile="Dockerfile" \
org.label-schema.schema-version="1.0"