blob: ebd0af3848f623fe2db88bb6a4d46e01be35b71f [file] [log] [blame]
Matteo Scandolo9ce18252017-06-22 10:48:25 -07001# xosproject/xos-tosca
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -07002FROM xosproject/xos-client:candidate
3
4# Set environment variables
5ENV CODE_SOURCE .
6ENV CODE_DEST /opt/xos-tosca
7WORKDIR ${CODE_DEST}
8
9# Add XOS-TOSCA code
10COPY ${CODE_SOURCE}/ ${CODE_DEST}/
11
12# Install dependencies
13RUN pip install -r ${CODE_DEST}/pip_requirements.txt
14
15EXPOSE 9102
16
17
18# Label image
19ARG org_label_schema_schema_version=1.0
20ARG org_label_schema_name=xos-tosca
21ARG org_label_schema_version=unknown
22ARG org_label_schema_vcs_url=unknown
23ARG org_label_schema_vcs_ref=unknown
24ARG org_label_schema_build_date=unknown
25ARG org_opencord_vcs_commit_date=unknown
26
27LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
28 org.label-schema.name=$org_label_schema_name \
29 org.label-schema.version=$org_label_schema_version \
30 org.label-schema.vcs-url=$org_label_schema_vcs_url \
31 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
32 org.label-schema.build-date=$org_label_schema_build_date \
33 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
34
35ENTRYPOINT [ "/usr/bin/python", "src/main.py" ]