Matteo Scandolo | f18f1a2 | 2017-11-16 13:24:53 -0800 | [diff] [blame] | 1 | # xosproject/gui-extension-vtr-base |
| 2 | FROM xosproject/xos-gui-builder:candidate as xos-vtr-base |
Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 3 | |
Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 4 | ENV CODE_SOURCE . |
| 5 | ENV CODE_DEST /var/www |
| 6 | ENV VHOST /var/www/dist |
| 7 | |
Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 8 | COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json |
| 9 | COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json |
| 10 | |
Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 11 | WORKDIR ${CODE_DEST} |
| 12 | RUN npm install |
| 13 | RUN npm run typings |
| 14 | |
Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 15 | COPY ${CODE_SOURCE}/conf ${CODE_DEST}/conf |
| 16 | COPY ${CODE_SOURCE}/gulp_tasks ${CODE_DEST}/gulp_tasks |
| 17 | COPY ${CODE_SOURCE}/src ${CODE_DEST}/src |
| 18 | COPY ${CODE_SOURCE}/gulpfile.js ${CODE_DEST}/gulpfile.js |
| 19 | COPY ${CODE_SOURCE}/tsconfig.json ${CODE_DEST}/tsconfig.json |
| 20 | COPY ${CODE_SOURCE}/tslint.json ${CODE_DEST}/tslint.json |
Matteo Scandolo | f18f1a2 | 2017-11-16 13:24:53 -0800 | [diff] [blame] | 21 | RUN npm run build |
Zack Williams | e788d8b | 2017-06-17 12:43:33 -0700 | [diff] [blame] | 22 | |
Matteo Scandolo | f18f1a2 | 2017-11-16 13:24:53 -0800 | [diff] [blame] | 23 | # xosproject/gui-extension-vtr |
| 24 | FROM alpine:latest |
| 25 | |
| 26 | ENV VHOST /var/www/dist |
| 27 | WORKDIR ${VHOST} |
| 28 | |
| 29 | COPY --from=xos-vtr-base ${VHOST} /tmp |
| 30 | |
Zack Williams | e788d8b | 2017-06-17 12:43:33 -0700 | [diff] [blame] | 31 | ARG org_label_schema_schema_version=1.0 |
| 32 | ARG org_label_schema_name=xos-gui-extension-vtr |
| 33 | ARG org_label_schema_version=unknown |
| 34 | ARG org_label_schema_vcs_url=unknown |
| 35 | ARG org_label_schema_vcs_ref=unknown |
| 36 | ARG org_label_schema_build_date=unknown |
| 37 | ARG org_opencord_vcs_commit_date=unknown |
Zack Williams | e788d8b | 2017-06-17 12:43:33 -0700 | [diff] [blame] | 38 | ARG org_opencord_component_xos_gui_vcs_ref=unknown |
Matteo Scandolo | f18f1a2 | 2017-11-16 13:24:53 -0800 | [diff] [blame] | 39 | ARG org_opencord_component_xos_gui_vcs_url=unknown |
| 40 | ARG org_opencord_component_xos_gui_version=unknown |
Zack Williams | e788d8b | 2017-06-17 12:43:33 -0700 | [diff] [blame] | 41 | |
| 42 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 43 | org.label-schema.name=$org_label_schema_name \ |
| 44 | org.label-schema.version=$org_label_schema_version \ |
| 45 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 46 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 47 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 48 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \ |
Matteo Scandolo | f18f1a2 | 2017-11-16 13:24:53 -0800 | [diff] [blame] | 49 | org.opencord.component.xos-gui.vcs-ref=$org_opencord_component_xos_gui_vcs_ref \ |
Zack Williams | e788d8b | 2017-06-17 12:43:33 -0700 | [diff] [blame] | 50 | org.opencord.component.xos-gui.vcs-url=$org_opencord_component_xos_gui_vcs_url \ |
Matteo Scandolo | f18f1a2 | 2017-11-16 13:24:53 -0800 | [diff] [blame] | 51 | org.opencord.component.xos-gui.version=$org_opencord_component_xos_gui_version |