Before build the docker file, build the jar package:
mvn package -DskipTests=true
Dockerfile:
FROM java:8 WORKDIR / ADD target/explorecali-2.0.0-SNAPSHOT.jar // EXPOSE 8080 ENTRYPOINT [ "java", "-jar", "/explorecali-2.0.0-SNAPSHOT.jar"]
2021-12-14 03:32:53
Before build the docker file, build the jar package:
mvn package -DskipTests=true
Dockerfile:
FROM java:8 WORKDIR / ADD target/explorecali-2.0.0-SNAPSHOT.jar // EXPOSE 8080 ENTRYPOINT [ "java", "-jar", "/explorecali-2.0.0-SNAPSHOT.jar"]