parent
265009303e
commit
5fa3908c72
@ -1,42 +1,36 @@ |
||||
FROM php:7.4-fpm-alpine |
||||
FROM php:7.4-fpm |
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories |
||||
RUN apt-get update && apt-get install -y \ |
||||
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-install -j$(nproc) \ |
||||
bcmath \ |
||||
pdo_mysql \ |
||||
pdo_pgsql \ |
||||
gd \ |
||||
zip \ |
||||
exif \ |
||||
sockets \ |
||||
intl \ |
||||
soap \ |
||||
&& pecl install \ |
||||
redis \ |
||||
xdebug \ |
||||
&& docker-php-ext-enable \ |
||||
redis \ |
||||
xdebug \ |
||||
&& apt-get clean \ |
||||
&& apt-get autoclean |
||||
|
||||
RUN apk add --no-cache --virtual .build-deps \ |
||||
$PHPIZE_DEPS \ |
||||
curl-dev \ |
||||
imagemagick-dev \ |
||||
libtool \ |
||||
libxml2-dev \ |
||||
postgresql-dev \ |
||||
sqlite-dev \ |
||||
&& apk add --no-cache \ |
||||
curl \ |
||||
git \ |
||||
imagemagick \ |
||||
mysql-client \ |
||||
postgresql-libs \ |
||||
openssl \ |
||||
libzip-dev \ |
||||
&& pecl install imagick \ |
||||
&& docker-php-ext-enable imagick \ |
||||
&& pecl install xdebug-3.0.4 \ |
||||
&& docker-php-ext-enable xdebug \ |
||||
&& docker-php-ext-install \ |
||||
curl \ |
||||
iconv \ |
||||
pdo \ |
||||
pdo_mysql \ |
||||
pdo_pgsql \ |
||||
pdo_sqlite \ |
||||
pcntl \ |
||||
tokenizer \ |
||||
xml \ |
||||
zip \ |
||||
&& curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \ |
||||
&& apk del -f .build-deps |
||||
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/ |
||||
|
||||
WORKDIR /var/www |
Loading…
Reference in new issue