Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 1 | # To build use: docker build -t xosproject/xos-gui-extension-builder . |
| 2 | |
Matteo Scandolo | d7c230a | 2017-05-03 10:25:08 -0700 | [diff] [blame] | 3 | FROM node:7.9.0 |
Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 4 | |
Zack Williams | ca68f35 | 2017-04-27 20:17:18 -0700 | [diff] [blame] | 5 | # Set environment vars |
| 6 | ENV CODE_SOURCE . |
| 7 | ENV CODE_DEST /var/www |
| 8 | |
| 9 | RUN mkdir -p ${CODE_DEST} |
| 10 | |
| 11 | # Add the app deps |
| 12 | COPY ${CODE_SOURCE}/package.json ${CODE_SOURCE}/typings.json ${CODE_DEST}/ |
| 13 | |
| 14 | # Install Deps |
| 15 | WORKDIR ${CODE_DEST} |
| 16 | RUN npm install \ |
| 17 | && npm run typings |
| 18 | |
Zack Williams | cb3a7b4 | 2017-04-15 17:07:18 -0700 | [diff] [blame] | 19 | # Label image |
| 20 | ARG org_label_schema_schema_version=1.0 |
| 21 | ARG org_label_schema_name=xos-gui-extension-builder |
| 22 | ARG org_label_schema_version=unknown |
| 23 | ARG org_label_schema_vcs_url=unknown |
| 24 | ARG org_label_schema_vcs_ref=unknown |
| 25 | ARG org_label_schema_build_date=unknown |
| 26 | ARG org_opencord_vcs_commit_date=unknown |
| 27 | |
| 28 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 29 | org.label-schema.name=$org_label_schema_name \ |
| 30 | org.label-schema.version=$org_label_schema_version \ |
| 31 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 32 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 33 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 34 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |
| 35 | |