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