Skip to content

Approaches for Python Image Size Optimizations - Medium Article Supporting Code

Notifications You must be signed in to change notification settings

GavinMasterson/python-image-optimization

 
 

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.2%
  • Slim 17.6%
  • Python 8.2%