mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
HOW ABOUT WE INSTALL YARN BEFORE WE BUILD WEBPANEL
This commit is contained in:
+2
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user