Lighten your Python image with Docker multi-stage builds

In previous posts we talked about poetry and Docker images layers and I promised I would write about Docker multi-stage builds, so here we go! Note I will explain the basics of Docker multi-stage builds required to understand the post, but I won’t repeat the documentation (see further reading). ⚙️ Multi-stage builds Basically a multi-stage build allows you to sequentially use multiple images in one Dockerfile and pass data between them....

2021-01-02 · 6 min · 1135 words

Poetry for Python dependencies management

At ITSF, teams using the same languages/frameworks regularly meet to share experience and decide on common guidelines. With the Python teams, we recently decided to change our dependencies management system to something more robust because we were not satisfied with pip alone. ✅ Requirements Here’s a list of the features we expected from our new tool: It must manage transitive dependencies1 for us. Developers should only have to specify the direct dependencies of their projects....

2020-12-30 · 6 min · 1119 words