build(Docker): 增加 Production 环境配置文件

This commit is contained in:
Argo Zhang 2019-09-05 15:06:29 +08:00
parent b9710a0984
commit b27e904af0
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
5 changed files with 30 additions and 8 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -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 @@
}
]
}
}
}

View File

@ -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"
},

View File

@ -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"
}