본문 바로가기
개발/ETC

When using COPY with more than one source file, the destination must be a directory and end with a / 해결

by devhooney 2023. 3. 10.
728x90

Spring boot 프로젝트를 AWS와 Docker Github Action을 사용해서 배포과정 중 만난 에러

 

그냥 배포를 하게 되면 plain.jar가 생성되는데,

여기엔 우리가 추가한 라이브러리들이 다 빠져있고, 우리가 작성한 코드만 들어있다.

그러다보니 에러가 발생하므로 아래 명령어로 plain.jar 생성을 차단하자

 

build.gradle에

 

jar {
    enabled = false
}

추가해준다.

 

 

 

 

 

-참고

https://dev-j.tistory.com/22

728x90