Skip to content

Commit

Permalink
Included scss compiling using sass in the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Masu-Baumgartner committed Jun 29, 2024
1 parent caa7bb2 commit 52b3616
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Moonlight/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52b3616

Please sign in to comment.