Closed virtualtam closed 7 years ago
If apk
provides all necessary packages, that's fine with me.
We're talking about disk usage here, not RAM, right?
Alpine indeed provides system and PHP packages with good granularity (1 extension => 1 package)
The generated images are more lightweight (I've managed to go down to 75 MiB by replacing supervisor with S6), which means they take less storage space, and by extension use less RAM when running Docker appliances :)
Motivations
Our Docker images are currently based on the
debian:jessie
base image, and weight around 300 MiB.This is due to several reasons:
Alpine Linux is a lightweight and minimalist distribution tat revolves around:
The base image weights 4 MiB and comes with usage documentation to create lightweight service images.
Related articles/posts:
Proposed setup for Shaarli images
Note: Supervisor comes with a lot of Python dependencies (with respect to the expected image size) and might be replaced with runit to spare a few MiBs :)
Early results
I've started to fiddle with a new image, here are the early results (before attempting Dockerfile voodoo):