<div dir="ltr">Hi, <div><br></div><div>I'm working on a CloudOps solution using docker containers optimized for production deployment. Getting the container as small as possible turns out to be pretty complicated, especially for python deployments. </div><div><br></div><div>To get containers as small as possible I'm going the embedded linux, busybox route. The goal is to have 50MB or less overhead over the size of the application. In contrast, the masterfoxes container has 746MB of overhead for 25MB of app and requirements. </div><div><br></div><div>We save space by not including gcc, pip and many other things. So in order to build the production container we need to build it and tar.gz it on one box and COPY it into the new container.</div><div><br></div><div>I currently have working'ish</div><div><br></div><div>- buildroot/busybox base image</div><div>- pyrun working in the base image</div><div>- no pip/setuptools</div><div><br></div><div>I'm hacking on the Build, tar.gz, copy now:</div><div><br></div><div>- build box w/ pyrun, spits out a tar.gz to be ADD'ed to the prod container</div><div>- pyrun is portable, and in theory, a tar.gz of the app directory + dependencies will work</div><div><br></div><div>I'm optimistic that this will work. Though, I'm not sure if c modules compiled on the buildbox requires exactly the same glibc on the production container. </div><div><br></div><div><br></div><div><br></div><div><br></div></div>