blob: 4b5ec971a23f17409ba940d8866ae4065dc735a8 [file] [log] [blame]
Matteo Scandolo7c80bf12017-11-16 13:24:53 -08001# xosproject/gui-extension-vtr-base
2FROM xosproject/xos-gui-builder:candidate as xos-vtr-base
Matteo Scandoloe19fa102017-03-09 15:38:59 -08003
Matteo Scandoloe19fa102017-03-09 15:38:59 -08004ENV CODE_SOURCE .
5ENV CODE_DEST /var/www
6ENV VHOST /var/www/dist
7
Matteo Scandoloe19fa102017-03-09 15:38:59 -08008COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json
9COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json
10
Matteo Scandoloe19fa102017-03-09 15:38:59 -080011WORKDIR ${CODE_DEST}
12RUN npm install
13RUN npm run typings
14
Matteo Scandoloe19fa102017-03-09 15:38:59 -080015COPY ${CODE_SOURCE}/conf ${CODE_DEST}/conf
16COPY ${CODE_SOURCE}/gulp_tasks ${CODE_DEST}/gulp_tasks
17COPY ${CODE_SOURCE}/src ${CODE_DEST}/src
18COPY ${CODE_SOURCE}/gulpfile.js ${CODE_DEST}/gulpfile.js
19COPY ${CODE_SOURCE}/tsconfig.json ${CODE_DEST}/tsconfig.json
20COPY ${CODE_SOURCE}/tslint.json ${CODE_DEST}/tslint.json
Matteo Scandolo7c80bf12017-11-16 13:24:53 -080021RUN npm run build
Zack Williamse788d8b2017-06-17 12:43:33 -070022
Matteo Scandolo7c80bf12017-11-16 13:24:53 -080023# xosproject/gui-extension-vtr
24FROM alpine:latest
25
26ENV VHOST /var/www/dist
27WORKDIR ${VHOST}
28
29COPY --from=xos-vtr-base ${VHOST} /tmp
30
Zack Williamse788d8b2017-06-17 12:43:33 -070031ARG org_label_schema_schema_version=1.0
32ARG org_label_schema_name=xos-gui-extension-vtr
33ARG org_label_schema_version=unknown
34ARG org_label_schema_vcs_url=unknown
35ARG org_label_schema_vcs_ref=unknown
36ARG org_label_schema_build_date=unknown
37ARG org_opencord_vcs_commit_date=unknown
Zack Williamse788d8b2017-06-17 12:43:33 -070038ARG org_opencord_component_xos_gui_vcs_ref=unknown
Matteo Scandolo7c80bf12017-11-16 13:24:53 -080039ARG org_opencord_component_xos_gui_vcs_url=unknown
40ARG org_opencord_component_xos_gui_version=unknown
Zack Williamse788d8b2017-06-17 12:43:33 -070041
42LABEL 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 Scandolo7c80bf12017-11-16 13:24:53 -080049 org.opencord.component.xos-gui.vcs-ref=$org_opencord_component_xos_gui_vcs_ref \
Zack Williamse788d8b2017-06-17 12:43:33 -070050 org.opencord.component.xos-gui.vcs-url=$org_opencord_component_xos_gui_vcs_url \
Matteo Scandolo7c80bf12017-11-16 13:24:53 -080051 org.opencord.component.xos-gui.version=$org_opencord_component_xos_gui_version