devicehive / devicehive-java-server

DeviceHive Java Server
http://www.devicehive.com
Apache License 2.0
369 stars 139 forks source link

Build docker image devicehive-backend failed #545

Open bhcuong2008 opened 3 years ago

bhcuong2008 commented 3 years ago

Hi,

I want to build a custom docker image of devicehive-backend, but not found devicehive-backend/target/devicehive-backend-3.5.0-boot.jar during docker build.

My current working dir: devicehive-java-server/dockerfiles docker build -t <tagname> -f devicehive-backend.Dockerfile .

Error:

Step 6/11 : ADD devicehive-backend/target/devicehive-backend-${DH_VERSION}-boot.jar /opt/devicehive/
ADD failed: file not found in build context or excluded by .dockerignore: stat devicehive-backend/target/devicehive-backend-3.5.0-boot.jar: file does not exist

Please guide me where to find dir devicehive-backend/target containing devicehive-backend-3.5.0-boot.jar

Thank you very much. Cuong.