docker-piwigo/Dockerfile
2020-12-12 15:30:31 +01:00

58 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 ghcr.io/linuxserver/baseimage-alpine-nginx:3.12
# set version label
ARG BUILD_DATE
ARG VERSION
ARG PIWIGO_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
RUN \
echo "**** install packages ****" && \
apk add --no-cache --upgrade \
curl \
exiftool \
ffmpeg \
imagemagick \
libjpeg-turbo-utils \
lynx \
mediainfo \
php7-apcu \
php7-cgi \
php7-ctype \
php7-curl \
php7-dom \
php7-exif \
php7-gd \
php7-imagick \
php7-ldap \
php7-mysqli \
php7-mysqlnd \
php7-pear \
php7-xmlrpc \
php7-xsl \
poppler-utils \
re2c \
unzip \
wget && \
echo "**** download piwigo ****" && \
if [ -z ${PIWIGO_RELEASE+x} ]; then \
PIWIGO_RELEASE=$(curl -sX GET "https://api.github.com/repos/Piwigo/Piwigo/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir /piwigo && \
curl -o \
/piwigo/piwigo.zip -L \
"http://piwigo.org/download/dlcounter.php?code=${PIWIGO_RELEASE}" && \
# The max filesize is 2M by default, which is way to small for most photos
sed -ri 's/^upload_max_filesize = .*/upload_max_filesize = 100M/' /etc/php7/php.ini && \
# The max post size is 8M by default, it must be at least max_filesize
sed -ri 's/^post_max_size = .*/post_max_size = 100M/' /etc/php7/php.ini
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 80 443
VOLUME /config /pictures