Xboard/Dockerfile

17 lines
637 B
Docker
Raw Normal View History

2023-11-17 01:44:01 -05:00
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 \
&& apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git \
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 www
2023-11-17 01:44:01 -05:00
#复制项目文件以及配置文件
WORKDIR /www
COPY .docker /
COPY . /www
RUN composer install --optimize-autoloader --no-cache --no-dev \
&& php artisan storage:link \
&& chown -R www:www /www \
&& chmod -R 777 /www
2023-11-17 01:44:01 -05:00
CMD [ "/usr/bin/supervisord", "--nodaemon", "-c" ,"/etc/supervisor/supervisord.conf" ]