-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (39 loc) · 1.25 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
47
FROM python:2
MAINTAINER ludovic.claude@chuv.ch
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
WORKDIR /usr/src/app
COPY requirements.txt .
COPY src/ src/
RUN pip install -r requirements.txt
ENV JOB_ID=1
ENV INPUT_METHOD=POSTGRESQL \
DB_HOST=db \
DB_PORT=5432 \
DB_NAME=woken \
DB_USER=woken \
DB_PASSWORD=... \
DB_TABLE=job_result \
DB_COLUMN=data \
DB_WHERE_LVALUE=job_id \
DB_WHERE_RVALUE=${JOB_ID} \
FEATURES_DB_HOST=db \
FEATURES_DB_PORT=5432 \
FEATURES_DB_NAME=sample \
FEATURES_DB_USER=sample \
FEATURES_DB_PASSWORD=... \
FEATURES_DB_TABLE=features
CMD [ "python", "./src/main.py" ]
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="hbpmip/pfa-validator" \
org.label-schema.description="Validates PFA documents" \
org.label-schema.url="https://github.com/HBPMedical/pfa-validator" \
org.label-schema.vcs-type="git" \
org.label-schema.vcs-url="https://github.com/HBPMedical/pfa-validator" \
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"