Skip to content

Commit

Permalink
build: Use node-9 as fallback
Browse files Browse the repository at this point in the history
Change-Id: Ica6872c4ff253f8415886ad0885a9af3a7f5e078
Relate-to: kelly/node-i2c#90
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Aug 8, 2018
1 parent efa984a commit eb84809
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 (p.coval@samsung.com)

ENV DEBIAN_FRONTEND noninteractive
Expand All @@ -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 \
Expand Down

0 comments on commit eb84809

Please sign in to comment.