[feat] add gd jpeg support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jay 2021-01-15 19:56:51 +08:00
parent 4f358d2f83
commit 8f2b395a15

View File

@ -1,8 +1,8 @@
FROM php:7-fpm-alpine FROM php:7-fpm-alpine
WORKDIR /var/www WORKDIR /var/www
RUN apk add --no-cache libcurl curl-dev libpng libpng-dev icu-dev libzip libzip-dev shadow freetype freetype-dev libpq postgresql-dev \ RUN apk add --no-cache libcurl curl-dev libjpeg jpeg-dev libpng libpng-dev icu-dev libzip libzip-dev shadow freetype freetype-dev libpq postgresql-dev \
&& usermod -u 1000 www-data && groupmod -g 1000 www-data \ && usermod -u 1000 www-data && groupmod -g 1000 www-data \
&& docker-php-ext-configure gd --with-freetype \ && docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install ctype curl gd iconv intl mysqli pdo pdo_mysql zip exif pdo_pgsql pgsql && docker-php-ext-install ctype curl gd iconv intl mysqli pdo pdo_mysql zip exif pdo_pgsql pgsql
COPY ./php.ini /usr/local/etc/php/ COPY ./php.ini /usr/local/etc/php/