Re:Introducing Jib — Build Java Docker images better
by adrianmsmith on Wednesday July 11, 2018 @08:33AM
(#17506337)
I think Java has such good build tooling that you don’t need to build in a container for reproducible builds. Other languages might be different.
Install the JDK, install Maven, check out the project, “mvn package” and it’ll download what it needs and produce the JAR to be copied into the Docker image by the Dockerfile.
Install the JDK, install Maven, check out the project, “mvn package” and it’ll download what it needs and produce the JAR to be copied into the Docker image by the Dockerfile.