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