A smaller base image and process management with runit
https://hub.docker.com/r/jermine/bbox
git clone https://github.com/JermineHu/docker-busybox.git
cd docker-busybox
docker build -t jermine/bbox -f Dockerfile .
# the busybox includ a light http server
docker run -it -v `pwd`:/www -p 1180:80 --rm jermine/bbox httpd -p 80 -h /www
# use runit to management process in busybox
runsvdir -P /www/runit/service
docker run -d -v `pwd`:/www jermine/bbox runsvdir -P /www/runit/service
The following code shoud be in Dockerfile CMD line with run.sh file.
#!/bin/sh
exec /sbin/runsvdir /etc/service
https://peter.bourgon.org/blog/2015/09/24/docker-runit-and-graceful-termination.html
https://github.com/tozd/docker-runit/blob/master/runsvdir-start
Content type
Image
Digest
Size
935.9 kB
Last updated
over 7 years ago
docker pull jermine/bbox