Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenes committed Aug 4, 2021
2 parents d1f93bc + 9e2d29d commit 7fdec84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions mysql/docker.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ skip-host-cache
skip-name-resolve

sql_mode=""
wait_timeout=1814400
14 changes: 12 additions & 2 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,26 @@ fi

# 安装 Redis 扩展
RUN pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis

# 安装 grpc 扩展
RUN pecl install grpc \
&& docker-php-ext-enable grpc

# 安装 protobuf 扩展
RUN pecl install protobuf \
&& docker-php-ext-enable protobuf

RUN rm -rf /tmp/pear

# 安装 Composer
ENV COMPOSER_HOME /var/www/.composer
RUN curl -sS https://install.phpcomposer.com/installer | php -- --install-dir=/usr/bin --filename=composer
RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

RUN curl -sS https://install.phpcomposer.com/installer | php -- --install-dir=/usr/bin --filename=composer1
RUN composer1 config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
&& composer self-update --1
&& composer1 self-update --1

RUN chown -R www-data:www-data /var/www/

Expand Down

0 comments on commit 7fdec84

Please sign in to comment.