docker-piwigo/Dockerfile
Juhamatti Niemelä 4277184dc9 Install php7-exif extensions
Enables exif metadata use with Piwigo and gets rid of related error
notifications in the Admin UI.
2017-04-20 20:36:17 +03:00

76 lines
1.4 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine.nginx:3.5
MAINTAINER sparklyballs
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# install build packages
RUN \
apk add --no-cache --virtual=build-dependencies \
autoconf \
curl \
file \
g++ \
gcc \
imagemagick-dev \
libtool \
make && \
apk add --no-cache --virtual=build-dependencies \
--repository http://nl.alpinelinux.org/alpine/edge/community \
php7-dev && \
# install runtime packages
apk add --no-cache \
curl \
imagemagick \
lynx \
re2c \
unzip \
wget && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/main \
libwebp && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/community \
php7-apcu \
php7-cgi \
php7-exif \
php7-gd \
php7-mysqlnd \
php7-pear \
php7-xmlrpc \
php7-xsl && \
# install php imagemagick
mkdir -p \
/tmp/imagick-src && \
curl -o \
/tmp/imagick.tgz -L \
https://pecl.php.net/get/imagick && \
tar xf \
/tmp/imagick.tgz -C \
/tmp/imagick-src --strip-components=1 && \
cd /tmp/imagick-src && \
phpize7 && \
./configure \
--prefix=/usr \
--with-php-config=/usr/bin/php-config7 && \
make && \
make install && \
echo "extension=imagick.so" > /etc/php7/conf.d/00_imagick.ini && \
# cleanup
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 80 443
VOLUME /config /pictures