缩小容器体积
This commit is contained in:
1 parent
10a99ea558
commit
95e29d2d09
1 file changed
+4
-6
+4
-6
@@ -3,12 +3,10 @@ RUN a2enmod rewrite
|
||||
# 如果构建速度慢可以换源
|
||||
# RUN sed -i -E "s@http://.*.debian.org@http://mirrors.cloud.tencent.com@g" /etc/apt/sources.list
|
||||
# 安装相关拓展
|
||||
RUN apt update && apt install imagemagick libmagickwand-dev libpq-dev -y \
|
||||
&& pecl install imagick \
|
||||
&& docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-install pdo_mysql pdo pdo_pgsql pgsql \
|
||||
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
|
||||
&& docker-php-ext-enable imagick
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||
install-php-extensions imagick bcmath pdo_mysql pdo_pgsql
|
||||
RUN { \
|
||||
echo 'post_max_size = 100M;';\
|
||||
echo 'upload_max_filesize = 100M;';\
|
||||
|
||||
Reference in new issue
Block a user