Matteo Scandolo | 9ce1825 | 2017-06-22 10:48:25 -0700 | [diff] [blame] | 1 | # xosproject/xos-tosca |
Matteo Scandolo | 5c0af1b | 2017-07-05 14:51:21 -0700 | [diff] [blame^] | 2 | FROM xosproject/xos-client:candidate |
| 3 | |
| 4 | # Set environment variables |
| 5 | ENV CODE_SOURCE . |
| 6 | ENV CODE_DEST /opt/xos-tosca |
| 7 | WORKDIR ${CODE_DEST} |
| 8 | |
| 9 | # Add XOS-TOSCA code |
| 10 | COPY ${CODE_SOURCE}/ ${CODE_DEST}/ |
| 11 | |
| 12 | # Install dependencies |
| 13 | RUN pip install -r ${CODE_DEST}/pip_requirements.txt |
| 14 | |
| 15 | EXPOSE 9102 |
| 16 | |
| 17 | |
| 18 | # Label image |
| 19 | ARG org_label_schema_schema_version=1.0 |
| 20 | ARG org_label_schema_name=xos-tosca |
| 21 | ARG org_label_schema_version=unknown |
| 22 | ARG org_label_schema_vcs_url=unknown |
| 23 | ARG org_label_schema_vcs_ref=unknown |
| 24 | ARG org_label_schema_build_date=unknown |
| 25 | ARG org_opencord_vcs_commit_date=unknown |
| 26 | |
| 27 | LABEL 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 | |
| 35 | ENTRYPOINT [ "/usr/bin/python", "src/main.py" ] |