blob: a99062fe6341d71c9a608988737611f6fd1b6883 [file] [log] [blame]
Andrea Campanella95c02bd2017-09-01 16:51:03 +02001FROM xosproject/xos-gui-extension-builder:candidate
2
3# Set environment vars
4ENV CODE_SOURCE .
5ENV CODE_DEST /var/www
6ENV VHOST /var/www/dist
7
8# Add the app deps
9COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json
10COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json
11
12# Install Deps
13WORKDIR ${CODE_DEST}
14RUN npm install
15RUN npm run typings
16
17# Build the app
18COPY ${CODE_SOURCE}/conf ${CODE_DEST}/conf
19COPY ${CODE_SOURCE}/gulp_tasks ${CODE_DEST}/gulp_tasks
20COPY ${CODE_SOURCE}/src ${CODE_DEST}/src
21COPY ${CODE_SOURCE}/gulpfile.js ${CODE_DEST}/gulpfile.js
22COPY ${CODE_SOURCE}/tsconfig.json ${CODE_DEST}/tsconfig.json
23COPY ${CODE_SOURCE}/tslint.json ${CODE_DEST}/tslint.json
Zack Williams9a212842017-10-03 13:13:27 -070024
25# Label image
26ARG org_label_schema_schema_version=1.0
27ARG org_label_schema_name=gui-extension-vnaas
28ARG org_label_schema_version=unknown
29ARG org_label_schema_vcs_url=unknown
30ARG org_label_schema_vcs_ref=unknown
31ARG org_label_schema_build_date=unknown
32ARG org_opencord_vcs_commit_date=unknown
33ARG org_opencord_component_chameleon_version=unknown
34ARG org_opencord_component_chameleon_vcs_url=unknown
35ARG org_opencord_component_chameleon_vcs_ref=unknown
36ARG org_opencord_component_xos_version=unknown
37ARG org_opencord_component_xos_vcs_url=unknown
38ARG org_opencord_component_xos_vcs_ref=unknown
39
40LABEL 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 Campanella95c02bd2017-09-01 16:51:03 +020054RUN npm run build