feat: strengthen P0 security and operations

This commit is contained in:
2026-08-01 11:20:02 +08:00
parent f776056834
commit 84c2b0b21d
77 changed files with 24185 additions and 355 deletions

24
Tiku.Worker/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
USER $APP_UID
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Directory.Build.props", "Directory.Packages.props", "./"]
COPY ["Tiku.Domain/Tiku.Domain.csproj", "Tiku.Domain/"]
COPY ["Tiku.Application/Tiku.Application.csproj", "Tiku.Application/"]
COPY ["Tiku.Infrastructure/Tiku.Infrastructure.csproj", "Tiku.Infrastructure/"]
COPY ["Tiku.Worker/Tiku.Worker.csproj", "Tiku.Worker/"]
RUN dotnet restore "Tiku.Worker/Tiku.Worker.csproj"
COPY . .
RUN dotnet publish "Tiku.Worker/Tiku.Worker.csproj" \
-c $BUILD_CONFIGURATION \
-o /app/publish \
--no-restore \
/p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "Tiku.Worker.dll"]