mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-10-15 18:54:50 +08:00
🐛fix:修复正式环境没有关闭SWAGGER
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user