From a1f92b808027540ea16295fcecb5e515540f9548 Mon Sep 17 00:00:00 2001 From: alexkar598 <25136265+alexkar598@users.noreply.github.com> Date: Tue, 7 Dec 2021 23:27:01 -0500 Subject: [PATCH] HOW ABOUT WE INSTALL YARN BEFORE WE BUILD WEBPANEL --- build/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 32b0892ad0..1cc36ca240 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -17,7 +17,7 @@ RUN . $NVM_DIR/nvm.sh \ && apt-get install -y \ dos2unix \ && rm -rf /var/lib/apt/lists/* \ - && npm install -g npm + && npm install -g npm yarn # Build web control panel WORKDIR /repo/build @@ -32,10 +32,7 @@ COPY src/Tgstation.Server.Host/Tgstation.Server.Host.csproj ./ # I cant figure out how to run npm as non root so eh RUN npm set unsafe-perm true RUN dotnet msbuild -target:NpmBuild -RUN npm set unsafe-perm false - -#Install yarn globally for webpanel -RUN npm install -g yarn +RUN npm set unsafe-perm fals WORKDIR /repo