HOW ABOUT WE INSTALL YARN BEFORE WE BUILD WEBPANEL

This commit is contained in:
alexkar598
2021-12-07 23:27:01 -05:00
committed by GitHub
parent 5d9a6372cf
commit a1f92b8080
+2 -5
View File
@@ -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