💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` FROM php:7.4-fpm ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 ARG TZ="Asia/Shanghai" ENV TZ=${TZ} # 替换软件源为阿里云 RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \ sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \ apt-get update # 安装系统依赖 RUN apt-get install -y \ vim \ zip \ unzip \ curl \ wget \ git \ libzip-dev \ libpng-dev \ libfreetype6-dev \ libssl-dev \ libmemcached-dev \ libpq-dev \ libxml2-dev \ libmagickwand-dev \ libxslt-dev \ libicu-dev \ libonig-dev \ libwebp-dev \ libxpm-dev \ libgmp-dev \ libbz2-dev \ libsqlite3-dev \ libgdbm-dev \ libreadline-dev \ libyaml-dev \ libcurl4-openssl-dev \ libffi-dev \ libldap2-dev \ libpspell-dev \ libaspell-dev \ libsnmp-dev \ libtidy-dev \ libzip-dev && \ rm -rf /var/lib/apt/lists/* # 安装依赖库 RUN apt-get update && \ apt-get install -y librabbitmq-dev libssh-dev # 配置和安装PHP扩展 RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp && \ docker-php-ext-install -j$(nproc) \ gd \ bcmath \ bz2 \ calendar \ exif \ gettext \ mysqli \ opcache \ pdo_mysql \ pdo_pgsql \ pgsql \ soap \ sockets \ sysvmsg \ sysvsem \ sysvshm \ tidy \ xmlrpc \ xsl \ zip \ gmp && \ pecl install \ redis \ mongodb-1.9.1 \ imagick \ memcached \ xlswriter \ amqp && \ docker-php-ext-enable \ redis \ mongodb \ imagick \ memcached \ xlswriter \ amqp # 安装Composer RUN curl -sS https://install.phpcomposer.com/installer | php && \ mv composer.phar /usr/local/bin/composer && \ composer self-update --clean-backups && \ composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ WORKDIR /wwwroot CMD ["php-fpm"] ```