From 71270e4d5c7f0645a31a8dc7ccc56cea6a9711b0 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Mon, 22 Jul 2019 15:26:55 +0200 Subject: Replace curl healthcheck with pure php, apply haodlint suggestions (#2455) Closes #2453 --- Docker/Dockerfile-Alpine | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Docker/Dockerfile-Alpine') diff --git a/Docker/Dockerfile-Alpine b/Docker/Dockerfile-Alpine index 1715ff778..32671c4ae 100644 --- a/Docker/Dockerfile-Alpine +++ b/Docker/Dockerfile-Alpine @@ -1,9 +1,8 @@ FROM alpine:3.10 ENV TZ UTC - +SHELL ["/bin/ash", "-eo", "pipefail", "-c"] RUN apk add --no-cache \ - curl \ apache2 php7-apache2 \ php7 php7-curl php7-gmp php7-intl php7-mbstring php7-xml php7-zip \ php7-ctype php7-dom php7-fileinfo php7-iconv php7-json php7-session php7-simplexml php7-xmlreader php7-zlib \ @@ -53,4 +52,4 @@ CMD ([ -z "$CRON_MIN" ] || crond -d 6) && \ exec httpd -D FOREGROUND HEALTHCHECK --start-period=20s --interval=37s --timeout=5s --retries=3 \ - CMD curl -fsS 'http://localhost/i/' | grep -q 'jsonVars' || exit 1 + CMD (php -r "readfile('http://localhost/i/');" | grep -q 'jsonVars') || exit 1 -- cgit v1.2.3