[ale] Would you mind critiquing a container build HOWTO?

Derek Carter derek at goozbach.com
Tue Jul 2 17:14:32 EDT 2024


   I think one problem is a misunderstanding of how `systemctl` works, 
it requires that you have your entire OS be running under systemd as an 
init system (pid 1).

A container should just be doing a single process.

This  means that you want to just do a CMD of that single process in 
your Dockerfile.

If you need more logic than that you have to write your own entrypoint 
script and then call that.


Here's a simple example derived from yours: 
https://gitlab.com/goozbach/awslinux-httpd/-/blob/main/Dockerfile?ref_type=heads

-- 
Derek



More information about the Ale mailing list