Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

An Example of Docker's Multi Stage Build using Node.js and Raspberry Pi.

This example uses a "fat" Alpine base image to build all our node.js modules, some of which require additional build tools and make the image pretty big (434 MB). We then use Docker's Multi-stage build feature to copy those built node_modules into a much smaller runtime container which has only the bare essentials that our application needs at runtime.

Our resulting runtime container ends up being just 83.7 MB (~ 5 times smaller and only about 40MB when compressed and downloaded to the device.)

About

Alpine nodejs image using Docker Multistage build on Raspberry pi 3

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages