Skip to content

Commit 66cf9b8

Browse files
committed
Update Dockerfile
1 parent 67e7787 commit 66cf9b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ COPY nginx-site.conf /etc/nginx/sites-available/default
5050
# Ensure deploy.sh has necessary commands (composer install, migrations, cache)
5151
RUN mkdir -p /scripts
5252
COPY deploy.sh /scripts/00-laravel-deploy.sh
53-
RUN chmod +x /scripts/00-laravel-deploy.sh
53+
# Install dos2unix, convert line endings, and ensure the script is executable
54+
RUN apk add --no-cache dos2unix && \
55+
dos2unix /scripts/00-laravel-deploy.sh && \
56+
chmod +x /scripts/00-laravel-deploy.sh
5457

5558
# The base image (richarvey/nginx-php-fpm) handles starting Nginx, PHP-FPM,
5659
# and running scripts from /scripts. Its default CMD is /start.sh.

0 commit comments

Comments
 (0)