[CI/CD] BE 이미지 Docker build시 Fail 하는 현상
Closed this issue · 0 comments
leesungbin commented
이슈 내용
아래와 같이, 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
기대 결과
- 빌드 성공