blob: 93d4fa5ad902223346e1a5464a1d202e0ed882e9 [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 Scandolod0e21df2017-11-16 10:17:12 -080017# To build use: docker build -t xosproject/xos-gui-builder:candidate .
Matteo Scandolo11b4a632017-02-09 10:28:41 -080018
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
Zack Williamsca68f352017-04-27 20:17:18 -070027COPY ${CODE_SOURCE}/package.json ${CODE_SOURCE}/typings.json ${CODE_DEST}/
28
Zack Williamsca68f352017-04-27 20:17:18 -070029WORKDIR ${CODE_DEST}
30RUN npm install \
31 && npm run typings
32
Zack Williamscb3a7b42017-04-15 17:07:18 -070033ARG org_label_schema_schema_version=1.0
34ARG org_label_schema_name=xos-gui-extension-builder
35ARG org_label_schema_version=unknown
36ARG org_label_schema_vcs_url=unknown
37ARG org_label_schema_vcs_ref=unknown
38ARG org_label_schema_build_date=unknown
39ARG org_opencord_vcs_commit_date=unknown
40
41LABEL 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