The Docker base image that's solid as a rock.
Bedrock is a super-lightweight base image for Docker applications. Bedrock is influenced by phusion/baseimage; however, it is built upon alpine and includes only a minimal set of tools compared to phusion/baseimage, allowing Bedrock to act as an unopinionated, extendable base image while also keeping the image size to an absolute minimum.
Bedrock 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.
Bedrock is super simply to use: simply make a Dockerfile that inherits from Bedrock, add your build instructions, and set a CMD
. Bedrock will pass whatever you set as the 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 aplbrain/bedrock:<VERSION>
# ...build instructions here...
CMD [ "exe_name_here", "arg" ]
Apache 2.0