From 442c18c4aa490912090f54f632ae152d76f7a063 Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 3 Apr 2026 11:33:57 +0200 Subject: [PATCH] fucking windows --- Dockers/remote-php-container/Dockerfile | 3 ++- Dockers/remote-php-container/entrypoint.sh | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockers/remote-php-container/Dockerfile b/Dockers/remote-php-container/Dockerfile index 200e183..d745980 100644 --- a/Dockers/remote-php-container/Dockerfile +++ b/Dockers/remote-php-container/Dockerfile @@ -13,6 +13,7 @@ RUN apt-get update && apt-get install -y \ openssh-client \ unzip \ iputils-ping \ + dos2unix \ libpng-dev \ libjpeg-dev \ libfreetype6-dev \ @@ -73,7 +74,7 @@ RUN chmod +x /usr/local/bin/entrypoint.sh COPY crontab /etc/cron.d/laravel-cron RUN chmod 0644 /etc/cron.d/laravel-cron RUN crontab /etc/cron.d/laravel-cron - +RUN dos2unix /usr/local/bin/entrypoint.sh # Expose ports EXPOSE 8000 diff --git a/Dockers/remote-php-container/entrypoint.sh b/Dockers/remote-php-container/entrypoint.sh index 7ab9dcf..ab8f32e 100644 --- a/Dockers/remote-php-container/entrypoint.sh +++ b/Dockers/remote-php-container/entrypoint.sh @@ -183,5 +183,9 @@ if [ -z "$START_COMMAND" ]; then START_COMMAND='php -S 0.0.0.0:8000' fi +if [ -f /workspace/bin/cake ]; then + sed -i 's/\r$//' /workspace/bin/cake +fi + # Always run the app under pm2-runtime exec pm2-runtime "$START_COMMAND"