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