Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Combine Dockerfile RUN commands
Browse files Browse the repository at this point in the history
Signed-off-by: Amelia Bradley <bradley@bitwise.io>
  • Loading branch information
Amelia Bradley committed Jul 29, 2022
1 parent 794a171 commit befb111
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions ui/saplings/circuits/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ WORKDIR /saplings/circuits

COPY package*.json ./

RUN apk add --no-cache git

# Gives npm permission to run the prepare script in splinter-canopyjs as root
RUN npm config set unsafe-perm true && npm install
RUN apk add --no-cache git \
# Gives npm permission to run the prepare script in splinter-canopyjs as root
&& npm install

COPY . .

Expand Down
7 changes: 3 additions & 4 deletions ui/saplings/profile/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ WORKDIR /saplings/profile

COPY package*.json ./

RUN apk add --no-cache git

# Gives npm permission to run the prepare script in splinter-canopyjs as root
RUN npm config set unsafe-perm true && npm install
RUN apk add --no-cache git \
# Gives npm permission to run the prepare script in splinter-canopyjs as root
&& npm install

COPY . .
7 changes: 3 additions & 4 deletions ui/saplings/register-login/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ WORKDIR /saplings/register-login

COPY package*.json ./

RUN apk add --no-cache git

# Gives npm permission to run the prepare script in splinter-canopyjs as root
RUN npm config set unsafe-perm true && npm install
RUN apk add --no-cache git \
# Gives npm permission to run the prepare script in splinter-canopyjs as root
&& npm install

COPY . .

0 comments on commit befb111

Please sign in to comment.