Thanks @adam! You are right. I did the suggestions you stated; and was able to get a binary that is
361.4MB (slightly larger by
30MB but getting closer).
I moved the
jdk as build dependencies as they are required for building tomcat from source. Actual dependencies is blank. In order to get
core/jdk8 includes the
jre directory so I moved that into my packaging. But I have other issues, where I am able to run
hab start bdangit/tomcat inside the studio and it will work; however outside in docker it won't work as it appears I'm missing some of the shared libraries.
tomcat(O): /hab/pkgs/bdangit/tomcat/8.0.36/20160726221441/jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
Sounds like I'll just have to make a hab package for