mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
18 lines
611 B
Docker
18 lines
611 B
Docker
FROM phpswoole/swoole:php8.1-alpine
|
|
|
|
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
|
|
|
RUN install-php-extensions pcntl bcmath
|
|
|
|
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
|
|
COPY .docker /
|
|
COPY . /www
|
|
RUN composer install --optimize-autoloader --no-cache --no-dev \
|
|
&& php artisan storage:link \
|
|
&& chown -R www:www /www
|
|
|
|
CMD [ "/usr/bin/supervisord", "--nodaemon", "-c" ,"/etc/supervisor/supervisord.conf" ] |