#tradewind:add php83

This commit is contained in:
tradewind 2023-12-25 18:23:07 +08:00
parent 804eb5544f
commit 4b5a861360
8 changed files with 3966 additions and 3 deletions

View File

@ -47,6 +47,19 @@ services:
- server - server
container_name: php74 container_name: php74
restart: always restart: always
php83:
build:
context: ./php8.3/
dockerfile: dockerfile
volumes:
- ./php8.3/sources.list:/etc/apt/sources.list
- ./php8.3/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./php8.3/php.ini:/usr/local/etc/php/php.ini
- ${LOCAL_CODE_ROOT}:/var/www/http
networks:
- server
container_name: php83
restart: always
mysql: mysql:
build: build:
context: mysql/ context: mysql/

View File

@ -1,6 +1,5 @@
FROM node:latest FROM node:latest
RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libgtkextra-dev \ libgtkextra-dev \
@ -15,5 +14,4 @@ RUN apt-get update && apt-get install -y \
&& apt-get clean \ && apt-get clean \
&& apt-get autoclean && apt-get autoclean
RUN npm install -g electron

View File

@ -4,7 +4,7 @@ ARG PROJECT_PATH
WORKDIR ${PROJECT_PATH} WORKDIR ${PROJECT_PATH}
RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list RUN sed -i "s@http://deb.debian.org@http://mirrors.tencent.com@g" /etc/apt/sources.list
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git \ git \

View File

@ -0,0 +1,5 @@
zend_extension=xdebug
xdebug.mode=debug
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.idekey=PHPSTORM

43
php8.3/dockerfile Normal file
View File

@ -0,0 +1,43 @@
FROM php:8.3-fpm
ARG PROJECT_PATH
WORKDIR ${PROJECT_PATH}
RUN apt-get update && apt-get install -y \
git \
zip \
unzip \
libpq-dev \
libzip-dev \
libpng-dev \
libfreetype6-dev \
libxml2-dev \
libicu-dev \
libjpeg62-turbo-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl --enable-pcntl \
&& docker-php-ext-install -j$(nproc) \
bcmath \
pdo_mysql \
pdo_pgsql \
gd \
zip \
exif \
sockets \
intl \
soap \
pcntl \
&& pecl install \
redis \
xdebug \
&& docker-php-ext-enable \
redis \
xdebug \
&& apt-get clean \
&& apt-get autoclean
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# 修改 composer 为国内镜像
RUN composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/

1947
php8.3/php.ini Normal file

File diff suppressed because it is too large Load Diff

1947
php8.3/php.ini-dev Normal file

File diff suppressed because it is too large Load Diff

10
php8.3/sources.list Normal file
View File

@ -0,0 +1,10 @@
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free