From 0f0debb8cada79253078ef5b7b6e3e2adf63b182 Mon Sep 17 00:00:00 2001 From: tradewind Date: Fri, 4 Jun 2021 18:48:12 +0800 Subject: [PATCH] #tradewind:fix mbstring --- php7.4/dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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