From 66cf9b87832389bf3bf0675fa02b9fd41abd73ed Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Sun, 18 May 2025 22:15:20 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b180512a..4a413379 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,10 @@ COPY nginx-site.conf /etc/nginx/sites-available/default # Ensure deploy.sh has necessary commands (composer install, migrations, cache) RUN mkdir -p /scripts COPY deploy.sh /scripts/00-laravel-deploy.sh -RUN chmod +x /scripts/00-laravel-deploy.sh +# Install dos2unix, convert line endings, and ensure the script is executable +RUN apk add --no-cache dos2unix && \ + dos2unix /scripts/00-laravel-deploy.sh && \ + chmod +x /scripts/00-laravel-deploy.sh # The base image (richarvey/nginx-php-fpm) handles starting Nginx, PHP-FPM, # and running scripts from /scripts. Its default CMD is /start.sh.