fix 修复 php artisan queue:work 命令执行错误的问题

This commit is contained in:
jjh 2023-12-07 13:17:53 +08:00
parent 5b0666b232
commit 8086591921
1 changed files with 2 additions and 1 deletions

View File

@ -2,5 +2,6 @@ FROM webdevops/php-nginx:7.4
COPY . /app
WORKDIR /app
RUN [ "sh", "-c", "composer install --ignore-platform-reqs" ]
RUN echo "#!/bin/bash\nphp artisan queue:work >/tmp/work.log 2>&1 &\nsupervisord" > /app/start.sh
RUN [ "sh", "-c", "chmod -R 777 /app" ]
RUN [ "sh", "-c", "php artisan queue:work >/tmp/work.log 2>&1 &" ]
CMD [ "sh", "-c","/app/start.sh" ]