blob: f04fa3e3824ec1379e8eb03d21571ebad0ac7674 [file] [log] [blame]
Matteo Scandolo11b4a632017-02-09 10:28:41 -08001# To build use: docker build -t xosproject/xos-gui-extension-builder .
2
Matteo Scandolod7c230a2017-05-03 10:25:08 -07003FROM node:7.9.0
Matteo Scandolo11b4a632017-02-09 10:28:41 -08004
Zack Williamsca68f352017-04-27 20:17:18 -07005# Set environment vars
6ENV CODE_SOURCE .
7ENV CODE_DEST /var/www
8
9RUN mkdir -p ${CODE_DEST}
10
11# Add the app deps
12COPY ${CODE_SOURCE}/package.json ${CODE_SOURCE}/typings.json ${CODE_DEST}/
13
14# Install Deps
15WORKDIR ${CODE_DEST}
16RUN npm install \
17 && npm run typings
18
Zack Williamscb3a7b42017-04-15 17:07:18 -070019# Label image
20ARG org_label_schema_schema_version=1.0
21ARG org_label_schema_name=xos-gui-extension-builder
22ARG org_label_schema_version=unknown
23ARG org_label_schema_vcs_url=unknown
24ARG org_label_schema_vcs_ref=unknown
25ARG org_label_schema_build_date=unknown
26ARG org_opencord_vcs_commit_date=unknown
27
28LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
29 org.label-schema.name=$org_label_schema_name \
30 org.label-schema.version=$org_label_schema_version \
31 org.label-schema.vcs-url=$org_label_schema_vcs_url \
32 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
33 org.label-schema.build-date=$org_label_schema_build_date \
34 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
35