From 63c46a0206066b82c08fa16ab1ed76cedc34cdda Mon Sep 17 00:00:00 2001 From: Amelia Bradley Date: Fri, 29 Jul 2022 17:09:24 -0500 Subject: [PATCH] Combine Dockerfile RUN commands Signed-off-by: Amelia Bradley --- ui/saplings/circuits/test/Dockerfile | 7 +++---- ui/saplings/profile/test/Dockerfile | 7 +++---- ui/saplings/register-login/test/Dockerfile | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/ui/saplings/circuits/test/Dockerfile b/ui/saplings/circuits/test/Dockerfile index b718ad4914..0a59f5d92b 100644 --- a/ui/saplings/circuits/test/Dockerfile +++ b/ui/saplings/circuits/test/Dockerfile @@ -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 . . diff --git a/ui/saplings/profile/test/Dockerfile b/ui/saplings/profile/test/Dockerfile index 95cd88a7b7..0470123b58 100644 --- a/ui/saplings/profile/test/Dockerfile +++ b/ui/saplings/profile/test/Dockerfile @@ -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 . . diff --git a/ui/saplings/register-login/test/Dockerfile b/ui/saplings/register-login/test/Dockerfile index 6f471b2c20..f4e9c87662 100644 --- a/ui/saplings/register-login/test/Dockerfile +++ b/ui/saplings/register-login/test/Dockerfile @@ -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 . .