The concept of this project is to find all the libraries for running an application or process in a Docker container. This will lead to smaller Docker images so that deploys are faster, disk usage is minimized, and attack surfaces are decreased.
docker build -t centos:java1.8.0_121 -f Dockerfile-java .
rm -rf build-output
docker run --rm -v "${PWD}:/data" -w /data centos:java1.8.0_121 python create_minimal_image.py /usr/lib/jvm/jre
docker build -t minimal-java -f Dockerfile-minimal-java .
docker build -t minimal-spring-boot -f Dockerfile-spring-boot .
or
./build-java.sh
Then to run Spring Boot application:
docker run -p 8080:8080 minimal-spring-boot
# create virtualenv if you'd like
pip install -r requirements.txt
py.test