Container of the Week: Python & Flask

← Slim Blog

From the SlimDevOps Twitch stream: Martin and Pieter walked through the first of our weekly container slimming examples: This one is a basic containerized Python Flask APIusing the official Python3:latest container as a base image.

We first build a very simple app that merely returns a static success message. We then run through a simple testing protocol (i.e., we hit it with a web browser) to ensure it is operating correctly, and then begin the containerization process.

We use the Slim Developer Platform's web portal to look inside the base image, then get to work Dockerizing our basic app. We take a quick look at layer construction, get the container running, and re-do our simple tests to ensure it's operating as expected.

We then Slim the image using the basic DockerSlim build command. As you'll see, the slim container works exactly as the original, but is 95% lighter. As the coup de grace, we scan the image using the Snyk.io scan tool in Docker. The original image is downright scary, with 323 known security vulnerabilities, 27 of them listed as critical! The Slim image has none whatsoever.

Watch and let us know what you think over in the Slim.AI Community.

--

Have a good idea for a Container of the Week example? Let us know on Twitter or Discord.

Embarking on a New Journey

Farewell, Slim — Transitioning to a new and larger mission!

We're excited to share some big news from Slim.AI. We're taking a bold new direction, focusing all our energy on software supply chain security, now under our new name root.io. To meet this opportunity head-on, we’re building a solution focused on transparency, trust, and collaboration between software producers and consumers.

When we started Slim.AI, our goal was to help developers make secure containers. But as we dug deeper with our early adopters and key customers, we realized a bigger challenge exists within software supply chain security ​​— namely, fostering collaboration and transparency between software producers and consumers. The positive feedback and strong demand we've seen from our early customers made it crystal clear: This is where we need to focus.

This new opportunity demands a company and brand that meet the moment. To that end, we’re momentarily stepping back into stealth mode, only to emerge with a vibrant new identity, and a groundbreaking product very soon at root.io. Over the next few months, we'll be laser-focused on working with design partners and building up the product, making sure we're right on the mark with what our customers need.

Stay informed and up-to-date with our latest developments at root.io. Discover the details about the end of life for Slim services, effective March 31, 2024, by clicking here.

Embarking on a New Journey

Farewell, Slim — Transitioning to a new and larger mission!

We're excited to share some big news from Slim.AI. We're taking a bold new direction, focusing all our energy on software supply chain security, now under our new name root.io. To meet this opportunity head-on, we’re building a solution focused on transparency, trust, and collaboration between software producers and consumers.

When we started Slim.AI, our goal was to help developers make secure containers. But as we dug deeper with our early adopters and key customers, we realized a bigger challenge exists within software supply chain security ​​— namely, fostering collaboration and transparency between software producers and consumers. The positive feedback and strong demand we've seen from our early customers made it crystal clear: This is where we need to focus.

This new opportunity demands a company and brand that meet the moment. To that end, we’re momentarily stepping back into stealth mode, only to emerge with a vibrant new identity, and a groundbreaking product very soon at root.io. Over the next few months, we'll be laser-focused on working with design partners and building up the product, making sure we're right on the mark with what our customers need.

Stay informed and up-to-date with our latest developments at root.io. Discover the details about the end of life for Slim services, effective March 31, 2024, by clicking here.