Matteo Scandolo | fb46ae6 | 2017-08-08 09:10:50 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 17 | # To build use: docker build -t xosproject/xos-gui-extension-builder . |
| 18 | |
Matteo Scandolo | d7c230a | 2017-05-03 10:25:08 -0700 | [diff] [blame] | 19 | FROM node:7.9.0 |
Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 20 | |
Zack Williams | ca68f35 | 2017-04-27 20:17:18 -0700 | [diff] [blame] | 21 | # Set environment vars |
| 22 | ENV CODE_SOURCE . |
| 23 | ENV CODE_DEST /var/www |
| 24 | |
| 25 | RUN mkdir -p ${CODE_DEST} |
| 26 | |
| 27 | # Add the app deps |
| 28 | COPY ${CODE_SOURCE}/package.json ${CODE_SOURCE}/typings.json ${CODE_DEST}/ |
| 29 | |
| 30 | # Install Deps |
| 31 | WORKDIR ${CODE_DEST} |
| 32 | RUN npm install \ |
| 33 | && npm run typings |
| 34 | |
Zack Williams | cb3a7b4 | 2017-04-15 17:07:18 -0700 | [diff] [blame] | 35 | # Label image |
| 36 | ARG org_label_schema_schema_version=1.0 |
| 37 | ARG org_label_schema_name=xos-gui-extension-builder |
| 38 | ARG org_label_schema_version=unknown |
| 39 | ARG org_label_schema_vcs_url=unknown |
| 40 | ARG org_label_schema_vcs_ref=unknown |
| 41 | ARG org_label_schema_build_date=unknown |
| 42 | ARG org_opencord_vcs_commit_date=unknown |
| 43 | |
| 44 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 45 | org.label-schema.name=$org_label_schema_name \ |
| 46 | org.label-schema.version=$org_label_schema_version \ |
| 47 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 48 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 49 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 50 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |
| 51 | |