From 5857fa382b677297a4dbdba3ad9d6854aae5f882 Mon Sep 17 00:00:00 2001 From: Dirk Mennecke Date: Fri, 24 May 2024 15:06:12 +0200 Subject: [PATCH] Replace line breaks and run startup script with bash --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1b7568..867d537 100644 --- a/Dockerfile +++ b/Dockerfile @@ -142,9 +142,9 @@ RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true # GeoServer user => restrict access to $CATALINA_HOME and GeoServer directories # See also CIS Docker benchmark and docker best practices -RUN chmod +x /opt/*.sh +RUN chmod +x /opt/*.sh && sed -i 's/\r$//' /opt/startup.sh -ENTRYPOINT ["/opt/startup.sh"] +ENTRYPOINT ["bash", "/opt/startup.sh"] WORKDIR /opt