Piwigo for Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

46 lines
1.3 KiB

  1. FROM ubuntu
  2. LABEL maintainer="Chris Wiegman <contact@chriswiegman.com>"
  3. ENV DEBIAN_FRONTEND noninteractive
  4. ARG PIWIGO_VERSION="2.9.5"
  5. RUN apt-get update && \
  6. apt-get install -yy software-properties-common && \
  7. add-apt-repository ppa:ondrej/php -y && \
  8. apt-get update \
  9. && apt-get install -yy \
  10. apache2 \
  11. libapache2-mod-php \
  12. php7.3-gd \
  13. php7.3-curl \
  14. php7.3-mysql \
  15. php7.3-mbstring \
  16. php7.3-xml \
  17. php7.3-imagick \
  18. wget \
  19. unzip \
  20. && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  21. RUN wget -q -O piwigo.zip http://piwigo.org/download/dlcounter.php?code=$PIWIGO_VERSION && \
  22. unzip piwigo.zip && \
  23. rm /var/www/* -rf && \
  24. mv piwigo/* /var/www/ && \
  25. rm -r piwigo* && \
  26. mkdir /template && \
  27. mv /var/www/galleries /template/ && \
  28. mv /var/www/themes /template/ && \
  29. mv /var/www/plugins /template/ && \
  30. mv /var/www/local /template/ && \
  31. mkdir -p /var/www/_data/i /config && \
  32. chown -R www-data:www-data /var/www
  33. ADD php.ini /etc/php/7.3/apache2/php.ini
  34. VOLUME ["/var/www/galleries", "/var/www/themes", "/var/www/plugins", "/var/www/local", "/var/www/_data/i", "/config"]
  35. ADD entrypoint.sh /entrypoint.sh
  36. RUN chmod u+x /entrypoint.sh
  37. ENTRYPOINT /entrypoint.sh
  38. EXPOSE 80