Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Approaches for Python Image Size Optimizations - Medium Article Supporting Code

Notifications You must be signed in to change notification settings

iracks/python-image-optimization

Open more actions menu
 
 

Repository files navigation

Introduction to Multi-Stage Image Build for Python

This repo provides the code examples for this medium article. This includes the following three builds:

  • Dockerfile.base - baseline image using the defult Python 3.10 image (python:3.10)
  • Dockerfile.slim - using the Python 3.10 slim image (python:3.10-slim)
  • Dockerfile.multi-stage - example for multi-stage build

VScode Settings

This repo has Dev Containers setting to test the tutorial builds. See the .devcontainer/devcontainer.json file for more details.

Resources

Additional resources for setting a Python development environment with VScode and the Dev Containers extension:

License

This tutorial is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

About

Approaches for Python Image Size Optimizations - Medium Article Supporting Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 74.0%
  • Slim 17.7%
  • Python 8.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.