Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
build: Clone from user URL and save space
Browse files Browse the repository at this point in the history
Change-Id: I3e634f89b29baf42cfc02a56c0b13edda489af45
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Aug 10, 2018
1 parent caeddc9 commit c66b452
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/s
touch /etc/inittab && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

ARG gateway_url
ENV gateway_url ${url:-https://github.com/tizenteam/gateway}
ARG gateway_branch
ENV gateway_branch ${branch:-master}

USER node
RUN cd /home/node && \
npm install yarn && \
mkdir mozilla-iot && \
cd mozilla-iot && \
git clone https://github.com/mozilla-iot/intent-parser && \
git clone https://github.com/mozilla-iot/gateway && \
git clone --depth 1 --recursive https://github.com/mozilla-iot/intent-parser && \
git clone --depth 1 --recursive -b ${gateway_branch} ${gateway_url} && \
cd gateway && \
/home/node/node_modules/.bin/yarn

Expand Down

0 comments on commit c66b452

Please sign in to comment.