chore: 在 Docker 启动时自动修改项目目录权限

This commit is contained in:
xboard 2024-04-13 04:10:47 +08:00
parent 93200ac057
commit 0c2360972b

View File

@ -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" ]
CMD ["sh", "-c", "chown -R www:www /www && chmod -R 775 /www && /usr/bin/supervisord --nodaemon -c /etc/supervisor/supervisord.conf"]