-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ica6872c4ff253f8415886ad0885a9af3a7f5e078 Relate-to: kelly/node-i2c#90 Signed-off-by: Philippe Coval <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/ . | ||
#} | ||
|
||
FROM ubuntu:latest | ||
FROM node:9 | ||
MAINTAINER Philippe Coval ([email protected]) | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
@@ -27,24 +27,20 @@ ENV project generic-sensors-lite | |
RUN echo "#log: ${project}: Setup system" \ | ||
&& set -x \ | ||
&& apt-get update -y \ | ||
&& apt-cache search npm \ | ||
&& apt-get install -y \ | ||
npm \ | ||
sudo \ | ||
&& npm --version || apt-get install -y npm \ | ||
&& node --version \ | ||
&& apt-get clean \ | ||
&& sync | ||
|
||
ADD . /usr/local/${project}/${project} | ||
WORKDIR /usr/local/${project}/${project} | ||
RUN echo "#log: ${project}: Preparing sources" \ | ||
&& set -x \ | ||
&& node --version \ | ||
&& npm install \ | ||
|| cat npm-debug.log \ | ||
&& npm install \ | ||
&& sync | ||
|
||
|
||
WORKDIR /usr/local/${project}/${project} | ||
RUN echo "#log: ${project}: Preparing sources" \ | ||
&& set -x \ | ||
|