From 0c2360972b1c9c51b3d6d7454b3b244ef89a9ab8 Mon Sep 17 00:00:00 2001 From: xboard Date: Sat, 13 Apr 2024 04:10:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=9C=A8=20Docker=20=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E8=87=AA=E5=8A=A8=E4=BF=AE=E6=94=B9=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=9B=AE=E5=BD=95=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 70cc6fc..2378279 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ COPY . /www RUN composer install --optimize-autoloader --no-cache --no-dev \ && php artisan storage:link \ && chown -R www:www /www \ -&& chmod -R 777 /www +&& chmod -R 775 /www -CMD [ "/usr/bin/supervisord", "--nodaemon", "-c" ,"/etc/supervisor/supervisord.conf" ] \ No newline at end of file +CMD ["sh", "-c", "chown -R www:www /www && chmod -R 775 /www && /usr/bin/supervisord --nodaemon -c /etc/supervisor/supervisord.conf"] \ No newline at end of file