blob: 4e1a8e674a076a46fad5604690e63d38cfc6e0c8 [file] [log] [blame]
Matteo Scandolofb46ae62017-08-08 09:10:50 -07001
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 Scandolo11b4a632017-02-09 10:28:41 -080017# To build use: docker build -t xosproject/xos-gui-extension-builder .
18
Matteo Scandolod7c230a2017-05-03 10:25:08 -070019FROM node:7.9.0
Matteo Scandolo11b4a632017-02-09 10:28:41 -080020
Zack Williamsca68f352017-04-27 20:17:18 -070021# Set environment vars
22ENV CODE_SOURCE .
23ENV CODE_DEST /var/www
24
25RUN mkdir -p ${CODE_DEST}
26
27# Add the app deps
28COPY ${CODE_SOURCE}/package.json ${CODE_SOURCE}/typings.json ${CODE_DEST}/
29
30# Install Deps
31WORKDIR ${CODE_DEST}
32RUN npm install \
33 && npm run typings
34
Zack Williamscb3a7b42017-04-15 17:07:18 -070035# Label image
36ARG org_label_schema_schema_version=1.0
37ARG org_label_schema_name=xos-gui-extension-builder
38ARG org_label_schema_version=unknown
39ARG org_label_schema_vcs_url=unknown
40ARG org_label_schema_vcs_ref=unknown
41ARG org_label_schema_build_date=unknown
42ARG org_opencord_vcs_commit_date=unknown
43
44LABEL 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