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.
42 lines
1.1 KiB
42 lines
1.1 KiB
FROM php:7.4-fpm-alpine
|
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
|
|
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
|
|
|
|
# 修改 composer 为国内镜像
|
|
RUN composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
|
|
|
|
WORKDIR /var/www |