Creating the Perfect Python Dockerfile

<p>In a previous project, I built an elastic transcoder farm that used Docker (Alpine), Python, and FFmpeg.</p> <p>Since the system had to be very cost-efficient, I wanted to make sure the underlying docker image wasn&rsquo;t creating too much overhead.<br /> After some research, I stumbled upon&nbsp;<a href="https://superuser.com/questions/1219609/why-is-the-alpine-docker-image-over-50-slower-than-the-ubuntu-image" rel="noopener ugc nofollow" target="_blank">this</a>&nbsp;StackOverflow question that questioned the FFmpeg execution performance and my Python code when using Alpine.</p> <p>Turns out, Alpine might be small but in some cases, it can slow things down quite a bit due to some of the equivalent libraries that are used.</p> <p>I was disheartened. After working so well with my Go projects, I had defaulted to use it with Python to get smaller images.</p> <p>This led me to start from scratch, benchmark a series of distributions, and create my new default docker image.</p> <p><a href="https://luis-sena.medium.com/creating-the-perfect-python-dockerfile-51bdec41f1c8"><strong>Read More</strong></a></p>