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 | d0e21df | 2017-11-16 10:17:12 -0800 | [diff] [blame^] | 17 | # To build use: docker build -t xosproject/xos-gui-builder:candidate . |
Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 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 | |
Zack Williams | ca68f35 | 2017-04-27 20:17:18 -0700 | [diff] [blame] | 27 | COPY ${CODE_SOURCE}/package.json ${CODE_SOURCE}/typings.json ${CODE_DEST}/ |
| 28 | |
Zack Williams | ca68f35 | 2017-04-27 20:17:18 -0700 | [diff] [blame] | 29 | WORKDIR ${CODE_DEST} |
| 30 | RUN npm install \ |
| 31 | && npm run typings |
| 32 | |
Zack Williams | cb3a7b4 | 2017-04-15 17:07:18 -0700 | [diff] [blame] | 33 | ARG org_label_schema_schema_version=1.0 |
| 34 | ARG org_label_schema_name=xos-gui-extension-builder |
| 35 | ARG org_label_schema_version=unknown |
| 36 | ARG org_label_schema_vcs_url=unknown |
| 37 | ARG org_label_schema_vcs_ref=unknown |
| 38 | ARG org_label_schema_build_date=unknown |
| 39 | ARG org_opencord_vcs_commit_date=unknown |
| 40 | |
| 41 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 42 | org.label-schema.name=$org_label_schema_name \ |
| 43 | org.label-schema.version=$org_label_schema_version \ |
| 44 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 45 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 46 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 47 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |
| 48 | |