File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed
Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 1+ # Exclude runtime data directories
2+ App_Data /data /
3+ App_Data /backups /
4+ App_Data /__pycache__ /
5+
6+ # Exclude build artifacts
7+ ** /bin /
8+ ** /obj /
9+ ** /node_modules /
10+
11+ # Exclude IDE and OS files
12+ .vs /
13+ .vscode /
14+ * .user
15+ .DS_Store
16+ Thumbs.db
17+
18+ # Exclude logs and temporary files
19+ * .log
20+ * .tmp
21+ * .temp
Original file line number Diff line number Diff line change @@ -10,6 +10,17 @@ RUN apt-get update && apt-get install -y curl unzip \
1010 && rm -rf /var/lib/apt/lists/*
1111
1212FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
13+
14+ # Install bun and tailwindcss in build stage
15+ RUN apt-get update && apt-get install -y curl unzip \
16+ && curl -fsSL https://bun.sh/install | bash \
17+ && mv /root/.bun/bin/bun /usr/local/bin/ \
18+ && curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 \
19+ && chmod +x tailwindcss-linux-x64 \
20+ && mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss \
21+ && apt-get clean \
22+ && rm -rf /var/lib/apt/lists/*
23+
1324WORKDIR /src
1425COPY ["MyApp/MyApp.csproj" , "MyApp/" ]
1526RUN dotnet restore "MyApp/MyApp.csproj"
@@ -18,7 +29,7 @@ WORKDIR "/src/MyApp"
1829RUN dotnet build "MyApp.csproj" -c Release -o /app/build
1930
2031FROM build AS publish
21- RUN dotnet publish "MyApp.csproj" -c Release -o /app/publish /p:UseAppHost=false
32+ RUN dotnet publish "MyApp.csproj" -c Release -o /app/publish /p:UseAppHost=false /p:PublishProfile= ""
2233
2334FROM base AS final
2435WORKDIR /app
Original file line number Diff line number Diff line change 7272 </ItemGroup >
7373
7474 <Target Name =" tailwind" BeforeTargets =" Publish" >
75- <Exec Command =" npm run ui:build" WorkingDirectory =" ./" />
75+ <Exec Command =" bun run ui:build" WorkingDirectory =" ./" />
7676 </Target >
7777
7878</Project >
You can’t perform that action at this time.
0 commit comments