You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
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/
|
|
|