From 52b3616de47ca5e99cc45d431c8c698ac0f407d2 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Sun, 30 Jun 2024 01:52:17 +0200 Subject: [PATCH] Included scss compiling using sass in the docker image --- Moonlight/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Moonlight/Dockerfile b/Moonlight/Dockerfile index 7393e0f3..2eac138f 100644 --- a/Moonlight/Dockerfile +++ b/Moonlight/Dockerfile @@ -14,6 +14,16 @@ COPY . . WORKDIR "/src/Moonlight" RUN dotnet build "Moonlight.csproj" -c $BUILD_CONFIGURATION -o /app/build +# Install sass +RUN apt-get update +RUN apt-get install wget -y +RUN cat /etc/os-release +RUN wget -O /tmp/sass.tar.gz https://github.com/sass/dart-sass/releases/download/1.77.5/dart-sass-1.77.5-linux-x64.tar.gz +RUN tar -xf /tmp/sass.tar.gz -C /tmp +RUN chmod +x /tmp/dart-sass/sass +RUN mkdir -p /app/build/Assets/Core/css/ +RUN /tmp/dart-sass/sass /src/Moonlight/Styles/style.scss /app/build/Assets/Core/css/theme.css + FROM build AS publish ARG BUILD_CONFIGURATION=Release RUN dotnet publish "Moonlight.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false