boostcampwm-2022 / web18-PRV

논문 인용관계를 밤하늘의 별 처럼 표시해보자 🌟-🌟
https://paperef.com
143 stars 3 forks source link

[CI/CD] BE 이미지 Docker build시 Fail 하는 현상 #87

Closed leesungbin closed 1 year ago

leesungbin commented 1 year ago

이슈 내용

아래와 같이, npm run build 를 실행할 때, AxiosInstance이 올바르지 않다는 오류를 확인할 수 있다.

 > [6/6] RUN npm run build:
#13 6.070 
#13 6.070 20       this.httpService.axiosRef,
#13 6.070          ~~~~~~~~~~~~~~~~~~~~~~~~~
#13 6.070 src/batch/batch.service.ts:24:50 - error TS2345: Argument of type 'import("/app/node_modules/@nestjs/axios/node_modules/axios/index").AxiosInstance' is not assignable to parameter of type 'import("/app/node_modules/axios/index").AxiosInstance'.
#13 6.070 
#13 6.070 24     this.doiBatcher = new DoiBatcher(this.redis, this.httpService.axiosRef, this.searchService, 'paper batch queue');
#13 6.070                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~
#13 6.070 
#13 6.071 Found 2 error(s).
#13 6.071 
------
Dockerfile:6
--------------------
   4 |     RUN npm i
   5 |     COPY . .
   6 | >>> RUN npm run build
   7 |     CMD npm run start:prod
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

기대 결과