FROM php:7.4.28-fpm-alpine3.15
# mirrors aliyun
RUN echo http://mirrors.aliyun.com/alpine/v3.15/main/ > /etc/apk/repositories && \
echo http://mirrors.aliyun.com/alpine/v3.15/community/ >> /etc/apk/repositories
RUN apk add --no-cache binutils freetype libpng libjpeg-turbo libpng-dev \
libjpeg-turbo-dev libc6-compat libxml2 libxml2-dev libc-dev icu-dev \
gettext-dev openssl-dev bzip2-dev
RUN docker-php-ext-install mysqli
RUN docker-php-source extract && \
wget http://pecl.php.net/get/redis-5.3.5.tgz && \
tar -xzf redis-5.3.5.tgz && \
mv redis-5.3.5 /usr/src/php/ext/redis && \
docker-php-ext-install redis
kubernetes创建php7 alpine镜像
最新推荐文章于 2024-04-24 16:40:50 发布