It is clearly erroring out that it is not able to find target/PostService-0.0.1-SNAPSHOT.jar. You need to add a step right above docker build stage to build that jar and run docker build command.