Better HN
topnewbestaskshowjobs
Log inSign up

bzajax

6 karma · joined Jun 25, 2010 (16y ago) · 2 submissions

Submissions

comment 8y ago · link · parent

Docker recently has support for multi stage builds. So you can use one Dockerfile to define how to build your image (produce your jar and necessary other resources) and then copy them into a fresh container running off a more lightweight image that might not contain all the intermediates and your build tools.

https://docs.docker.com/develop/develop-images/multistage-bu...

comment 16y ago · link · parent

So, after it's too late, we'll remove the app to make it seem like nothing bad really happened.