代码拉取完成,页面将自动刷新
同步操作将从 大卫/IYUUPlusDev 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# https://hub.docker.com/_/php
ARG PHP_CLI_VERSION=8.3-cli-alpine
# https://hub.docker.com/r/mlocati/php-extension-installer
ARG PHP_EXTENSION_INSTALL_VERSION=latest
# https://hub.docker.com/r/composer/composer
ARG COMPOSER_VERSION=latest
# install-php-extensions
FROM mlocati/php-extension-installer:$PHP_EXTENSION_INSTALL_VERSION AS php-extension-installer
# composer
FROM composer/composer:$COMPOSER_VERSION AS composer
# 开始构建
FROM php:$PHP_CLI_VERSION
LABEL Maintainer="david <[email protected]>"
LABEL Description="IYUUPlus-dev container with PHP ^8.3 based on Alpine Linux."
LABEL Version="8.3"
# 使用国内镜像(mirrors.aliyun.com | mirrors.ustc.edu.cn)
ARG CONTAINER_PACKAGE_URL=mirrors.ustc.edu.cn
RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi
# 安装系统依赖
COPY --from=php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN apk add --no-cache supervisor unzip
# 安装PHP 扩展
# https://github.com/mlocati/docker-php-extension-installer#supported-php-extensions
RUN install-php-extensions \
bcmath \
event \
gd \
mysqli \
pdo_mysql \
opcache \
pcntl \
sockets \
zip
# 清理缓存
RUN rm -rf /var/cache/apk/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
# 设置配置文件
# php
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY docker/php.ini "$PHP_INI_DIR/conf.d/app.ini"
# supervisor
COPY docker/supervisord.conf /etc/supervisor/supervisord.conf
# 设置项目目录
RUN mkdir -p /app
WORKDIR /app
# 暴露端口
EXPOSE 8787
EXPOSE 8788
EXPOSE 3131
# 文件系统
VOLUME ["/app"]
# 启动脚本
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。