Example of building Apache HTTPd from source within a Linux container
podman build -t example/apache-builder:1 .
podman run --rm -it -v /tmpdir:/tmp/output:z example/apache-builder:1
Where /tmpdir
is a host directory mounted to /tmp/output
within the container.
The :z
at the end of the container mount path is for SElinux host systems.