diff --git a/php7.4/dockerfile b/php7.4/dockerfile index fad7c21..881df6b 100644 --- a/php7.4/dockerfile +++ b/php7.4/dockerfile @@ -12,6 +12,7 @@ RUN apk add --no-cache --virtual .build-deps \ libxml2-dev \ postgresql-dev \ sqlite-dev \ + libonig-dev \ && apk add --no-cache \ curl \ git \ @@ -36,4 +37,9 @@ RUN apk add --no-cache --virtual .build-deps \ xml \ zip \ && curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \ - && apk del -f .build-deps \ No newline at end of file + && apk del -f .build-deps + +# 修改 composer 为国内镜像 +RUN composer config -g repo.packagist composer https://packagist.laravel-china.org + +WORKDIR /var/www \ No newline at end of file