I am trying to deploy my springboot application on a docker. I have created a docker file as follows.
FROM openjdk:8-jre-slim
EXPOSE 8080
RUN mkdir /app
COPY Service.jar /app/Service.jar
ENTRYPOINT ["java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-Djava.security.egd=file:/dev/./urandom","-jar","/app/Service.jar"]
The dockerfile builds fine but when I run the image it throws the following error:
no main manifest attribute, in /app/Service.jar
Service is a java springboot application and has rest endpoints. using gradle as a build tool.