尝试解决 合并错误问题

This commit is contained in:
小肥羊 2025-08-26 19:16:55 +08:00
parent a234d947c1
commit 8695b09513
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish
WORKDIR /src
COPY . .
WORKDIR "/src/Learn.Archives.API"
ENV NUGET_XMLDOC_MODE none
RUN dotnet nuget add source --name marking https://gitea.23544.com/api/packages/marking/nuget/index.json
RUN dotnet publish "Learn.Archives.API.csproj" -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
WORKDIR /app
COPY --from=publish /app .
ENV ASPNETCORE_ENVIRONMENT=Production
ENV TZ=Asia/Shanghai
EXPOSE 8080
ENTRYPOINT ["dotnet", "Learn.Archives.API.dll"]