mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
chore: docker环境修改php为非root运行
This commit is contained in:
parent
39b4218349
commit
03706c054d
@ -41,7 +41,7 @@ startretries=10
|
|||||||
[program:adapterman]
|
[program:adapterman]
|
||||||
command=php -c php.ini webman.php start
|
command=php -c php.ini webman.php start
|
||||||
directory=/www
|
directory=/www
|
||||||
user=root
|
user=www
|
||||||
numprocs=1
|
numprocs=1
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
@ -54,7 +54,7 @@ startretries=3
|
|||||||
[program:xboard-queue]
|
[program:xboard-queue]
|
||||||
command=php artisan horizon
|
command=php artisan horizon
|
||||||
directory=/www
|
directory=/www
|
||||||
user=root
|
user=www
|
||||||
stdout_logfile=/www/storage/logs/queue.log
|
stdout_logfile=/www/storage/logs/queue.log
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/www/storage/logs/queue_error.log
|
stderr_logfile=/www/storage/logs/queue_error.log
|
||||||
|
@ -6,12 +6,13 @@ RUN install-php-extensions pcntl bcmath
|
|||||||
|
|
||||||
RUN apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git
|
RUN apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git
|
||||||
|
|
||||||
|
RUN addgroup -S -g 1001 www && adduser -S -G www -u 1001 www
|
||||||
#复制项目文件以及配置文件
|
#复制项目文件以及配置文件
|
||||||
WORKDIR /www
|
WORKDIR /www
|
||||||
COPY .docker /
|
COPY .docker /
|
||||||
COPY . /www
|
COPY . /www
|
||||||
RUN composer install --optimize-autoloader --no-cache --no-dev \
|
RUN composer install --optimize-autoloader --no-cache --no-dev \
|
||||||
&& php artisan storage:link \
|
&& php artisan storage:link \
|
||||||
&& chmod -R 777 ./
|
&& chown -R www:www /www
|
||||||
|
|
||||||
CMD [ "/usr/bin/supervisord", "--nodaemon", "-c" ,"/etc/supervisor/supervisord.conf" ]
|
CMD [ "/usr/bin/supervisord", "--nodaemon", "-c" ,"/etc/supervisor/supervisord.conf" ]
|
@ -70,7 +70,7 @@
|
|||||||
"Tests\\": "tests/"
|
"Tests\\": "tests/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimum-stability": "beta",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-autoload-dump": [
|
"post-autoload-dump": [
|
||||||
|
Loading…
Reference in New Issue
Block a user