forked from LREN-CHUV/python-base-docker-images
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (30 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
41 lines (30 loc) · 1.22 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
FROM hbpmip/python-base-build:0.4.5
COPY mip_helper/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 mip_helper/tests/unit /src/tests/
WORKDIR /src
RUN pytest -x --ff --capture=no -vv tests/
FROM hbpmip/python-base:0.3.0
MAINTAINER mirco.nasuti@chuv.ch
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
COPY requirements.txt /
COPY docker-entrypoint.sh /
RUN pip install -r /requirements.txt
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["compute"]
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="hbpmip/python-mip" \
org.label-schema.description="Execute Python algorithms in MIP Woken environment" \
org.label-schema.url="https://github.com/LREN-CHUV/python-base-docker-images" \
org.label-schema.vcs-type="git" \
org.label-schema.vcs-url="https://github.com/LREN-CHUV/python-base-docker-images.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version="$VERSION" \
org.label-schema.vendor="LREN CHUV" \
org.label-schema.license="Apache2.0" \
org.label-schema.docker.dockerfile="Dockerfile" \
org.label-schema.schema-version="1.0"