🔨 Setup the docker build for tailwindcss

This commit is contained in:
2025-11-19 22:02:26 +08:00
parent aa48d5e25d
commit a52e54f672

View File

@@ -15,6 +15,11 @@ COPY ["DysonNetwork.Develop/DysonNetwork.Develop.csproj", "DysonNetwork.Develop/
RUN dotnet restore "DysonNetwork.Zone/DysonNetwork.Zone.csproj"
COPY . .
WORKDIR "/src/DysonNetwork.Zone"
RUN apt-get update && apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs
RUN npm install
RUN npm run css:build
RUN dotnet build "DysonNetwork.Zone.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish