⚠️feat: 正式删除mvc项目

This commit is contained in:
yubaolee
2025-06-07 23:46:44 +08:00
parent 67b83bab9e
commit 7977e382d6
2 changed files with 2 additions and 34 deletions

View File

@@ -2,8 +2,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
# WebApi
EXPOSE 52789
# Mvc
EXPOSE 1802
# Identity
EXPOSE 12796
@@ -12,7 +10,6 @@ WORKDIR /src
# 将当前目录下的所有文件和文件夹复制到容器的当前工作目录中
COPY *.sln ./
COPY ["OpenAuth.WebApi/", "./OpenAuth.WebApi/"]
COPY ["OpenAuth.Mvc/", "./OpenAuth.Mvc/"]
COPY ["OpenAuth.Identity/", "./OpenAuth.Identity/"]
COPY ["Infrastructure/", "./Infrastructure/"]
COPY ["OpenAuth.App/", "./OpenAuth.App/"]
@@ -24,9 +21,6 @@ RUN dotnet restore OpenAuth.Net.sln
WORKDIR "/src/OpenAuth.WebApi"
RUN dotnet publish -c Release -o /app/publish/webapi
# 发布 Mvc
WORKDIR "/src/OpenAuth.Mvc"
RUN dotnet publish -c Release -o /app/publish/mvc
# 发布 Identity
WORKDIR "/src/OpenAuth.Identity"
@@ -36,11 +30,10 @@ FROM base AS final
WORKDIR /app
# 复制 WebApi 发布文件
COPY --from=build /app/publish/webapi ./webapi
# 复制 Mvc 发布文件
COPY --from=build /app/publish/mvc ./mvc
# 复制 Identity 发布文件
COPY --from=build /app/publish/identity ./identity
# 启动 WebApi, Mvc, 和 Identity,就算失败也保持运行,方便查询日志
ENTRYPOINT ["sh", "-c", "cd webapi && dotnet OpenAuth.WebApi.dll & cd mvc && dotnet OpenAuth.Mvc.dll & cd identity && dotnet OpenAuth.IdentityServer.dll || tail -f /dev/null"]
ENTRYPOINT ["sh", "-c", "cd webapi && dotnet OpenAuth.WebApi.dll & cd identity && dotnet OpenAuth.IdentityServer.dll || tail -f /dev/null"]