myos/docker/http/alpine/docker-entrypoint.sh

10 lines
153 B
Bash
Raw Normal View History

2021-02-09 17:05:00 +01:00
#!/bin/sh
set -euo pipefail
set -o errexit
trap 'kill -SIGQUIT $PID' INT
# Launch httpd
[ $# -eq 0 ] && httpd-foreground || exec "$@" &
PID=$! && wait