-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
executable file
·39 lines (32 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MPL-2.0
# Copyright 2018-present Samsung Electronics Co., Ltd. and other contributors
#{
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/ .
#}
FROM mozillaiot/gateway:latest
MAINTAINER Philippe Coval ([email protected])
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}
ENV project mozilla-iot-generic-sensors-adapter
ADD . /root/.mozilla-iot/addons/generic-sensors-adapter
WORKDIR /root/.mozilla-iot/addons/${project}
RUN echo "#log: ${project}: Preparing sources" \
&& set -x \
&& which yarn || npm install -g yarn \
&& sync
WORKDIR /root/.mozilla-iot/addons/generic-sensors-adapter
RUN echo "#log: ${project}: Building sources" \
&& set -x \
&& ./package.sh \
&& sync
WORKDIR /root/.mozilla-iot/addons/generic-sensors-adapter
RUN echo "#log: ${project}: Installing sources" \
&& set -x \
&& install -d /usr/local/src/${project}/dist \
&& install generic-sensors-adapter-*.tgz /usr/local/src/${project}/dist \
&& sync