docker snippets showcase

Tips and code to solve specific problems. No fluff. Easy to copy and paste.

NameDescriptionTagsPublished
Cleaning local docker cacheDifferent options to prune docker resources from your local machinedockerJun 2021
Add a python package in an existing non-python alpine imageStep-by-step of how to install python and pip from apkdocker alpine pythonMay 2021
AWS CLI v2 in a Debian-flavored docker imageHow to install the AWS CLI in a Debian-flavored docker imageaws dockerApr 2021
Smaller images using multi-stage builds in DockerProduce smaller docker images by leveraging multi-stage builds in DockerfilesdockerApr 2021
Install development tools in alpineFix building gem native extensions by installing build-base in alpine docker imagedocker rubyApr 2021
Download files from URLsUsing the ADD instruction to download files from URL in a dockerfiledockerApr 2021
Dynamic FROM base imagesGenerate docker images that only differ on their base imagedockerMar 2021

Different options to prune docker resources from your local machine

Step-by-step of how to install python and pip from apk

How to install the AWS CLI in a Debian-flavored docker image

Produce smaller docker images by leveraging multi-stage builds in Dockerfiles

Fix building gem native extensions by installing build-base in alpine docker image

Using the ADD instruction to download files from URL in a dockerfile

Generate docker images that only differ on their base image