Foundation intends to be a super lightweight base image for Docker applications. Foundation is influenced by phusion/baseimage; however, it is built upon alpine and includes only a minimal set of tools compared to phusion/baseimage
, allowing Foundation to act as a unopinionated, extendable base image while also keeping the image size to a minimum.
Foundation includes only two tools: tini, to ensure the container has a valid init process that reaps zombie processes; and su-exec, to help with running commands as other users.
Foundation is super simply to use: simply make a Dockerfile that inherits from Foundation, add your build instructions, and set a CMD
. Foundation will pass whatever you set as the arguments to CMD
to tini
when the container is started. Make sure to use the exec style, as opposed to the shell style, when setting CMD
.
FROM hipaapotomous/foundation:<VERSION>
# ...build instructions here...
CMD [ "exe_name_here", "arg1" ]