feat: 添加 Gitea Actions 自动部署工作流
All checks were successful
Build and Deploy TenantApi / build-and-deploy (push) Successful in 40s

This commit is contained in:
msumshk
2026-02-05 21:31:55 +08:00
parent 75f20558a5
commit f10319d96b
2 changed files with 55 additions and 7 deletions

View File

@@ -1,12 +1,6 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore src/Api/TakeoutSaaS.TenantApi/TakeoutSaaS.TenantApi.csproj
RUN dotnet publish src/Api/TakeoutSaaS.TenantApi/TakeoutSaaS.TenantApi.csproj -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app/publish .
COPY publish/ .
EXPOSE 7903
ENV ASPNETCORE_URLS=http://+:7903
ENTRYPOINT ["dotnet", "TakeoutSaaS.TenantApi.dll"]