Running Java Spring boot on web services

Followed steps from community

# Build stage
FROM maven:3.6.0-jdk-11-slim AS build
COPY src /home/app/src
COPY pom.xml /home/app
RUN mvn -f /home/app/pom.xml clean package

# Package stage
FROM openjdk:11-jre-slim
COPY --from=build /home/app/target/Falcon-0.0.1.jar /usr/local/lib/falcon.jar
ENTRYPOINT ["java","-jar","/usr/local/lib/falcon.jar"]

But, getting an error
error: failed to solve: process "/bin/sh -c mvn -f /home/app/pom.xml clean package" did not complete successfully: exit code: 1

Any ideas? thanks

Hi there,

Thanks for reaching out.

I would expect there are more deploy logs which may shed some light on the actual issue.

If you could share some examples of the issue you are experiencing that may help us troubleshoot it with you, e.g. further logs/errors/output (look for error reasons), service name/ID, etc. If you don’t want to share these details on the community forum, please feel free to raise a ticket with



Figured it was my JUnit test cases expecting environment variable. Thanks for your response

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.