🐛fix:修复正式环境没有关闭SWAGGER

This commit is contained in:
yubaolee
2025-09-12 20:19:57 +08:00
parent 57546e5175
commit 23de2ae7e2
4 changed files with 124 additions and 68 deletions

View File

@@ -28,6 +28,11 @@ RUN dotnet publish -c Release -o /app/publish/identity
FROM base AS final
WORKDIR /app
# 设置 Production 环境变量
ENV ASPNETCORE_ENVIRONMENT=Production
ENV DOTNET_ENVIRONMENT=Production
# 复制 WebApi 发布文件
COPY --from=build /app/publish/webapi ./webapi