mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
use netcat for healthchecks
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
ac06db59c7
commit
95311fd7c3
6 changed files with 10 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
FROM alpine:3.16.2
|
||||
RUN apk add --update --no-cache lighttpd bash curl
|
||||
RUN apk add --update --no-cache lighttpd bash curl netcat-openbsd
|
||||
|
||||
RUN adduser -S www-data -G www-data
|
||||
RUN rm -rf /etc/lighttpd/lighttpd.conf
|
||||
|
|
@ -15,4 +15,4 @@ USER www-data
|
|||
RUN mkdir -p /var/www/domaincheck/
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
|
||||
HEALTHCHECK CMD curl -skfI localhost:$APACHE_PORT || exit 1
|
||||
HEALTHCHECK CMD nc -z localhost $APACHE_PORT || exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue