mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 06:47:24 +08:00
feat: new xboard
This commit is contained in:
+20
-10
@@ -1,17 +1,27 @@
|
||||
FROM phpswoole/swoole:php8.1-alpine
|
||||
FROM phpswoole/swoole:php8.2-alpine
|
||||
|
||||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
||||
RUN install-php-extensions pcntl bcmath zip redis \
|
||||
&& apk --no-cache add shadow sqlite mysql-client mysql-client mysql-dev mariadb-connector-c git patch supervisor redis \
|
||||
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 www \
|
||||
&& (getent group redis || addgroup -S redis) \
|
||||
&& (getent passwd redis || adduser -S -G redis -H -h /data redis)
|
||||
|
||||
RUN install-php-extensions pcntl bcmath inotify \
|
||||
&& apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git patch \
|
||||
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 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 \
|
||||
&& chmod -R 775 /www
|
||||
COPY .docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
CMD /usr/bin/supervisord --nodaemon -c /etc/supervisor/supervisord.conf
|
||||
RUN composer install --optimize-autoloader --no-cache --no-dev \
|
||||
&& php artisan storage:link \
|
||||
&& chown -R www:www /www \
|
||||
&& chmod -R 775 /www \
|
||||
&& mkdir -p /data \
|
||||
&& chown redis:redis /data
|
||||
|
||||
ENV ENABLE_WEB=true \
|
||||
ENABLE_HORIZON=true \
|
||||
ENABLE_REDIS=false
|
||||
|
||||
EXPOSE 7001
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||
Reference in New Issue
Block a user