My goal is to understand why is there a nginx
image and also nginx:alpine
image.
What I know:
nginx
is larger, 52.79 MB.nginx
usesdebian:bullseye-slim
.nginx:alpine
is smaller, 9.51 MB.nginx:alpine
usesalpine
.- both images can run static html just fine
docker run -p 8080:80 -v ${PWD}:/usr/share/nginx/html nginx:alpine
I cannot wrap my head around why the default image uses debian:bullseye-slim
rather than alpine
.