feat: обновил Dockerfile и добавил проверку для работы в контейнере
Create and publish a Docker image / Publish image (push) Successful in 2m48s
Create and publish a Docker image / Publish image (push) Successful in 2m48s
This commit is contained in:
1 parent
7e27b0742b
commit
f5d5b0f68f
3 files changed
+29
-18
No files matched your search
@@ -123,6 +123,12 @@ public class MicrosoftAuthService(ILogger<MicrosoftAuthService> logger, IConfigu
|
||||
try
|
||||
{
|
||||
if (_browsersEnsured) return;
|
||||
if (string.Equals(Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER"), "true", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// В Docker браузер и его зависимости уже установлены при сборке образа.
|
||||
_browsersEnsured = true;
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
// Устанавливаем Chromium, если не установлен
|
||||
|
||||
Reference in new issue
Block a user