Initially I was going to document the meaning of Docker layers, one of the killing features from Docker (IMHO), however during researching I came across something that I found curious and I’m going to dedicate a whole article about it.
Recently I documented how to dockerize Alpine on your Raspberry Pi, the next baby-step for me was to document how to build a more specific image from my dockerized Alpine image.
As the concept of layers in Docker proposes, your image can extend from a preexisting image. Therefore, from the image
kafebob/rpi-alpine-base I will create an image that provides a base environment for NodeJS applications.
You can use a precompiled version of NodeJS available from Alpine packages or a compiled version directly on your Raspberry. I’m going to document both.