From d1660aa9fe935236ac06d1ddfbfaec28ef20cff9 Mon Sep 17 00:00:00 2001 From: pro Date: Wed, 28 Jan 2026 00:07:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:Docker=20=EC=BB=A8=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=84=88=20=EB=82=B4=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EA=B3=84?= =?UTF-8?q?=EC=A0=95=20=ED=8C=8C=EC=9D=BC=20=EA=B2=BD=EB=A1=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /var/www/sales/apikey/ 경로 우선 검색 - Docker 볼륨 마운트된 sales 폴더에서 접근 가능 Co-Authored-By: Claude Opus 4.5 --- app/Services/BusinessCardOcrService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/BusinessCardOcrService.php b/app/Services/BusinessCardOcrService.php index 5a75e3c6..50fe53b9 100644 --- a/app/Services/BusinessCardOcrService.php +++ b/app/Services/BusinessCardOcrService.php @@ -128,8 +128,9 @@ private function callVertexAiApi(AiConfig $config, string $base64Image): array */ private function getAccessToken(): ?string { - // 여러 경로에서 서비스 계정 파일 찾기 + // 여러 경로에서 서비스 계정 파일 찾기 (Docker 컨테이너 및 호스트) $possiblePaths = [ + '/var/www/sales/apikey/google_service_account.json', // Docker 컨테이너 내 sales 볼륨 self::SERVICE_ACCOUNT_PATH, storage_path('app/google_service_account.json'), base_path('../sales/apikey/google_service_account.json'),