0

Dockerfile如下:

FROM php:7.0-fpm

RUN apt-get update && \
    apt-get install -y \
    libz-dev \
        libpq-dev \
        libjpeg-dev \
        libpng12-dev \
        libfreetype6-dev \
        libssl-dev \
        libmcrypt-dev


RUN docker-php-ext-install mcrypt

RUN docker-php-ext-install mysqli \
    && docker-php-ext-install pdo_mysql

RUN docker-php-ext-install gd

docker源已经替换成国内源

查看全部 2 个回答

0

安装包的源是墙外的还解决不了问题