crccheck / docker-hello-world

Hello World web server in under 2 MB
https://hub.docker.com/r/crccheck/hello-world/
161 stars 161 forks source link

Catch signals and exit immediately #8

Closed grongor closed 5 years ago

grongor commented 5 years ago

This change allows the container to exit immediately after the request (docker stop, kill, etc).

Shell ignored SIGTERM from Docker before this change, which resulted in slow killing of the container via SIGKILL (after some timeout has passed). Also removed tail and used foreground option of the httpd binary.