build(Docker): 增加 Production 环境配置文件
This commit is contained in:
parent
b9710a0984
commit
b27e904af0
|
@ -16,6 +16,7 @@ RUN dotnet publish -c Release -o /app
|
|||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
COPY --from=publish ["/src/Bootstrap.Admin/BootstrapAdmin.db", "./BootstrapAdmin.db"]
|
||||
COPY --from=publish ["/src/keys/Longbow.lic", "./Longbow.lic"]
|
||||
COPY --from=publish ["/src/Bootstrap.Admin/BootstrapAdmin.db", "."]
|
||||
COPY --from=publish ["/src/keys/Longbow.lic", "."]
|
||||
COPY --from=publish ["/src/keys/appsettings.Production.json", "."]
|
||||
ENTRYPOINT ["dotnet", "Bootstrap.Admin.dll"]
|
|
@ -16,6 +16,7 @@ RUN dotnet publish -c Release -o /app
|
|||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
COPY --from=publish ["/src/Bootstrap.Admin/BootstrapAdmin.db", "./BootstrapAdmin.db"]
|
||||
COPY --from=publish ["/src/keys/Longbow.lic", "./Longbow.lic"]
|
||||
COPY --from=publish ["/src/Bootstrap.Admin/BootstrapAdmin.db", "."]
|
||||
COPY --from=publish ["/src/keys/Longbow.lic", "."]
|
||||
COPY --from=publish ["/src/keys/appsettings.Production.json", "."]
|
||||
ENTRYPOINT ["dotnet", "Bootstrap.Admin.dll"]
|
|
@ -15,7 +15,6 @@
|
|||
"MaxFileCount": 1
|
||||
}
|
||||
},
|
||||
"SwaggerPathBase": "",
|
||||
"DB": [
|
||||
{
|
||||
"Enabled": false
|
||||
|
@ -50,6 +49,7 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"SwaggerPathBase": "",
|
||||
"AllowOrigins": "http://localhost:49185",
|
||||
"LongbowCache": {
|
||||
"Enabled": true,
|
||||
|
@ -240,4 +240,4 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -49,8 +49,8 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"SwaggerPathBase": "/BA",
|
||||
"AllowOrigins": "http://localhost,http://argo.zylweb.cn",
|
||||
"SwaggerPathBase": "",
|
||||
"AllowOrigins": "http://localhost,http://ba.sdgxgz.cn",
|
||||
"Sentry": {
|
||||
"Dsn": "https://70bdfff562e84fa7b9a43d65924ab9ad@sentry.io/1469396"
|
||||
},
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"Logging": {
|
||||
"IncludeScopes": false,
|
||||
"LogLevel": {
|
||||
"Default": "Debug",
|
||||
"System": "Information",
|
||||
"Microsoft": "Information"
|
||||
},
|
||||
"LgbFile": {
|
||||
"IncludeScopes": true,
|
||||
"LogLevel": {
|
||||
"Default": "Error"
|
||||
},
|
||||
"FileName": "Error/Log.log",
|
||||
"MaxFileCount": 1
|
||||
}
|
||||
},
|
||||
"SwaggerPathBase": "",
|
||||
"AllowOrigins": "http://localhost"
|
||||
}
|
Loading…
Reference in New Issue