Switched from nodejs to bun for building tailwindcss
This commit is contained in:
@@ -4,8 +4,10 @@ WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
|
||||
# Build dependencies
|
||||
RUN apt-get update; apt-get install nodejs npm -y; apt-get clean
|
||||
# Install required packages
|
||||
RUN apt-get update; apt-get install unzip -y; apt-get clean
|
||||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
ENV PATH="/root/.bun/bin:${PATH}"
|
||||
|
||||
# Build options
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
@@ -15,7 +17,7 @@ WORKDIR /src/Hosts/Moonlight.Frontend.Host/Styles
|
||||
|
||||
COPY ["Hosts/Moonlight.Frontend.Host/Styles/package.json", "package.json"]
|
||||
|
||||
RUN npm install
|
||||
RUN bun install
|
||||
|
||||
# Restore nuget packages
|
||||
WORKDIR /src
|
||||
@@ -39,7 +41,7 @@ WORKDIR "/src/Hosts/Moonlight.Frontend.Host"
|
||||
RUN dotnet build "./Moonlight.Frontend.Host.csproj" -c $BUILD_CONFIGURATION -o /app/build-frontend
|
||||
|
||||
WORKDIR "/src/Hosts/Moonlight.Frontend.Host/Styles"
|
||||
RUN npm run build
|
||||
RUN bun run build
|
||||
|
||||
# Build projects
|
||||
WORKDIR "/src/Hosts/Moonlight.Api.Host"
|
||||
|
||||
Reference in New Issue
Block a user