From 4bffab92c492ca22e9ce33eb47c7e92b80d36b7c Mon Sep 17 00:00:00 2001 From: Ernesto Serrano Date: Fri, 22 Nov 2024 08:35:45 +0000 Subject: [PATCH] Fix lint errores --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c43f60b25..c1dcd103c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ ARG ARCH= FROM ${ARCH}alpine:3.20 -LABEL Maintainer="Ernesto Serrano " \ - Description="Lightweight container with Nginx & PHP-FPM based on Alpine Linux." +LABEL maintainer="Ernesto Serrano " \ + description="Lightweight container with Nginx & PHP-FPM based on Alpine Linux." # Install packages RUN apk --no-cache add \ @@ -51,7 +51,7 @@ RUN apk --no-cache add \ | xargs -r apk info --installed \ | sort -u \ )" \ - && apk add --no-cache $runDeps \ + && apk add --no-cache "$runDeps" \ && apk del .gettext \ && mv /tmp/envsubst /usr/local/bin/ \ # Remove alpine cache @@ -78,6 +78,8 @@ EXPOSE 8080 # Ensure /bin/docker-entrypoint.sh is always executed ENTRYPOINT ["/bin/docker-entrypoint.sh"] +# Set SHELL to use pipefail +SHELL ["/bin/ash", "-o", "pipefail", "-c"] # Configure a healthcheck to validate that everything is up&running HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1