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

Commit

Permalink
build: Log more steps and use WORKDIR
Browse files Browse the repository at this point in the history
Change-Id: Ide0cb0dae99cd207ef7af97963c36a1b1b8098d1
Signed-off-by: Philippe Coval <[email protected]>
  • Loading branch information
rzr committed Aug 27, 2018
1 parent f17f102 commit e7966c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ ARG gateway_branch
ENV gateway_branch ${branch:-master}

USER node
RUN cd /home/node && \
WORKDIR /home/node
RUN set -x && \
npm install yarn && \
mkdir mozilla-iot && \
cd mozilla-iot && \
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
/home/node/node_modules/.bin/yarn --verbose

USER root
ADD service /etc/service
Expand Down

0 comments on commit e7966c7

Please sign in to comment.