-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eac269d
commit 68a3c6d
Showing
7 changed files
with
76 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
ARG CONTAINER_VERSION=${CONTAINER_VERSION} | ||
FROM php:${CONTAINER_VERSION}-fpm-alpine | ||
|
||
#RUN echo "https://mirror.csclub.uwaterloo.ca/alpine/v3.9/main" > /etc/apk/repositories && \ | ||
# echo "https://mirror.csclub.uwaterloo.ca/alpine/v3.9/community" >> /etc/apk/repositories | ||
|
||
RUN apk --update add build-base \ | ||
RUN apk --update --no-cache add build-base \ | ||
$PHPIZE_DEPS \ | ||
libjpeg-turbo-dev \ | ||
imagemagick-dev \ | ||
libxml2-dev \ | ||
libmcrypt-dev \ | ||
freetype \ | ||
libjpeg-turbo \ | ||
file \ | ||
libzip-dev \ | ||
libpng \ | ||
icu-dev \ | ||
g++ \ | ||
freetype-dev libpng-dev libjpeg-turbo-dev && \ | ||
rm /var/cache/apk/* | ||
freetype-dev \ | ||
libpng-dev \ | ||
zip \ | ||
jpegoptim \ | ||
pngquant \ | ||
gifsicle \ | ||
&& pecl install imagick | ||
|
||
ARG PHP_EXTENSION=false | ||
|
||
RUN /usr/local/bin/docker-php-ext-install ${PHP_EXTENSION} | ||
|
||
RUN /usr/local/bin/docker-php-ext-configure intl && \ | ||
/usr/local/bin/docker-php-ext-install intl | ||
|
||
ARG PECL_EXTENSION=false | ||
|
||
RUN /usr/local/bin/docker-php-ext-configure intl && \ | ||
/usr/local/bin/docker-php-ext-install intl | ||
|
||
RUN /usr/local/bin/docker-php-ext-install iconv && \ | ||
/usr/local/bin/docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \ | ||
/usr/local/bin/docker-php-ext-install gd | ||
/usr/local/bin/docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && \ | ||
/usr/local/bin/docker-php-ext-install gd && \ | ||
/usr/local/bin/docker-php-ext-enable imagick | ||
|
||
RUN apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev | ||
RUN apk del --no-cache freetype-dev libpng-dev | ||
|
||
COPY conf/php.ini /usr/local/etc/php/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters