Skip to content

Commit

Permalink
build: Use raspbian as docker image
Browse files Browse the repository at this point in the history
Relate-to: npm/uid-number#3
Change-Id: I71786586ab3cb4c7b92e08ff962a1fbec1895a35
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Jul 24, 2018
1 parent 3851b3d commit b47cb5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Expand Up @@ -6,9 +6,11 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/ .
#}

FROM debian:latest
FROM resin/rpi-raspbian:stretch
MAINTAINER Philippe Coval (p.coval@samsung.com)

RUN [ "cross-build-start" ]

ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}
Expand Down Expand Up @@ -49,6 +51,7 @@ WORKDIR /root/.mozilla-iot/addons/${project}
RUN echo "#log: ${project}: Preparing sources" \
&& set -x \
&& which npm || . ~/.bashrc \
&& npm config set unsafe-perm true \
&& which yarn || npm install -g yarn \
&& sync

Expand All @@ -65,3 +68,5 @@ RUN echo "#log: ${project}: Installing sources" \
&& install -d /usr/local/src/${project}/ \
&& install generic-sensors-adapter-*.tgz /usr/local/src/${project}/ \
&& sync

RUN [ "cross-build-end" ]

0 comments on commit b47cb5b

Please sign in to comment.