piwigo/Dockerfile
2016-10-14 15:20:52 +01:00

48 lines
816 B
Docker
Raw Permalink 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 linuxserver/baseimage.apache
MAINTAINER sparklyballs
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# copy sources.list
COPY sources.list /etc/apt/
# set install packages as variable
ENV APTLIST="curl \
lynx-cur \
php5-cgi \
php5-gd \
php5-imagick \
php5-mysql \
php5-xmlrpc \
php5-xsl \
php5-apcu \
php-auth \
php-auth-sasl \
php-net-smtp \
php-pear \
unzip \
wget"
# install packages
RUN apt-get update && \
apt-get install $APTLIST -qy && \
# cleanup
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# add some files
ADD defaults/ /defaults/
ADD init/ /etc/my_init.d/
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
# expose ports
EXPOSE 80 443
# set volumes
VOLUME /config /pictures