blob: b5c9661b741c79e589740b47ea8b9eed26126897 [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 Scandolo57aee472018-06-28 15:24:42 -070017# docker build -f Dockerfile.xos-gui-builder -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
Zack Williams99a10352017-11-22 16:16:24 -070034ARG org_label_schema_name=xos-gui-builder
Zack Williamscb3a7b42017-04-15 17:07:18 -070035ARG 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