Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 1 | FROM xosproject/xos-gui-extension-builder:candidate |
| 2 | |
| 3 | # Set environment vars |
| 4 | ENV CODE_SOURCE . |
| 5 | ENV CODE_DEST /var/www |
| 6 | ENV VHOST /var/www/dist |
| 7 | |
| 8 | # Add the app deps |
| 9 | COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json |
| 10 | COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json |
| 11 | |
| 12 | # Install Deps |
| 13 | WORKDIR ${CODE_DEST} |
| 14 | RUN npm install |
| 15 | RUN npm run typings |
| 16 | |
| 17 | # Build the app |
| 18 | COPY ${CODE_SOURCE}/conf ${CODE_DEST}/conf |
| 19 | COPY ${CODE_SOURCE}/gulp_tasks ${CODE_DEST}/gulp_tasks |
| 20 | COPY ${CODE_SOURCE}/src ${CODE_DEST}/src |
| 21 | COPY ${CODE_SOURCE}/gulpfile.js ${CODE_DEST}/gulpfile.js |
| 22 | COPY ${CODE_SOURCE}/tsconfig.json ${CODE_DEST}/tsconfig.json |
| 23 | COPY ${CODE_SOURCE}/tslint.json ${CODE_DEST}/tslint.json |
Zack Williams | 6e54cbe | 2017-10-03 13:13:27 -0700 | [diff] [blame] | 24 | |
| 25 | # Label image |
| 26 | ARG org_label_schema_schema_version=1.0 |
| 27 | ARG org_label_schema_name=gui-extension-vnaas |
| 28 | ARG org_label_schema_version=unknown |
| 29 | ARG org_label_schema_vcs_url=unknown |
| 30 | ARG org_label_schema_vcs_ref=unknown |
| 31 | ARG org_label_schema_build_date=unknown |
| 32 | ARG org_opencord_vcs_commit_date=unknown |
| 33 | ARG org_opencord_component_chameleon_version=unknown |
| 34 | ARG org_opencord_component_chameleon_vcs_url=unknown |
| 35 | ARG org_opencord_component_chameleon_vcs_ref=unknown |
| 36 | ARG org_opencord_component_xos_version=unknown |
| 37 | ARG org_opencord_component_xos_vcs_url=unknown |
| 38 | ARG org_opencord_component_xos_vcs_ref=unknown |
| 39 | |
| 40 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 41 | org.label-schema.name=$org_label_schema_name \ |
| 42 | org.label-schema.version=$org_label_schema_version \ |
| 43 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 44 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 45 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 46 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \ |
| 47 | org.opencord.component.chameleon.version=$org_opencord_component_chameleon_version \ |
| 48 | org.opencord.component.chameleon.vcs-url=$org_opencord_component_chameleon_vcs_url \ |
| 49 | org.opencord.component.chameleon.vcs-ref=$org_opencord_component_chameleon_vcs_ref \ |
| 50 | org.opencord.component.xos.version=$org_opencord_component_xos_version \ |
| 51 | org.opencord.component.xos.vcs-url=$org_opencord_component_xos_vcs_url \ |
| 52 | org.opencord.component.xos.vcs-ref=$org_opencord_component_xos_vcs_ref |
| 53 | |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 54 | RUN npm run build |