From d78f960c3541ec5801d2353e41b77823e0badba5 Mon Sep 17 00:00:00 2001 From: KimMinWoooo Date: Wed, 4 Sep 2024 18:39:57 +0900 Subject: [PATCH] fix --- .github/workflows/deploy.yml | 7 +++++-- ai/Dockerfile | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d20f369..e231335 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -52,9 +52,12 @@ jobs: # Backend, AI 이미지 빌드 및 푸시 - name: Build and push Docker images run: | - docker build -t $DOCKER_HUB_USERNAME/backend:latest ./backend - docker build -t $DOCKER_HUB_USERNAME/ai:latest ./ai + cd backend + docker build -t $DOCKER_HUB_USERNAME/backend:latest . docker push $DOCKER_HUB_USERNAME/backend:latest + + cd ../ai + docker build -t $DOCKER_HUB_USERNAME/ai:latest . docker push $DOCKER_HUB_USERNAME/ai:latest # Backend 서비스 배포 (AWS Systems Manager 사용) diff --git a/ai/Dockerfile b/ai/Dockerfile index 9a8b999..b46f7d9 100644 --- a/ai/Dockerfile +++ b/ai/Dockerfile @@ -18,6 +18,8 @@ RUN pip install --no-cache-dir -r requirements.txt # 프로젝트 파일 복사 COPY . . +COPY .env .env + # 데이터 저장을 위한 디렉토리 생성 RUN mkdir -p /app/data