Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. FROM lsiobase/nginx:3.9
  2. # set version label
  3. ARG BUILD_DATE
  4. ARG VERSION
  5. ARG PHOTOSHOW_COMMIT
  6. LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
  7. LABEL maintainer="sparklyballs"
  8. RUN \
  9. echo "**** install runtime packages ****" && \
  10. apk add --no-cache \
  11. curl \
  12. ffmpeg \
  13. imagemagick \
  14. jq \
  15. php7-gd \
  16. php7-imagick \
  17. unzip && \
  18. echo "**** Tag this image with current version ****" && \
  19. if [ -z ${PHOTOSHOW_COMMIT+x} ]; then \
  20. PHOTOSHOW_COMMIT=$(curl -sX GET https://api.github.com/repos/thibaud-rohmer/PhotoShow/commits/master \
  21. | jq -r '. | .sha'); \
  22. fi && \
  23. echo ${PHOTOSHOW_COMMIT} > /version.txt && \
  24. echo "**** configure php ****" && \
  25. echo "[www]" >> /etc/php7/php-fpm.conf && \
  26. echo "php_admin_value[upload_max_filesize] = 10M" >> /etc/php7/php-fpm.conf && \
  27. echo "php_admin_value[post_max_size] = 10M" >> /etc/php7/php-fpm.conf && \
  28. echo "php_admin_value[memory_limit] = 64M" >> /etc/php7/php-fpm.conf && \
  29. echo "php_admin_value[max_execution_time] = 15" >> /etc/php7/php-fpm.conf
  30. # add local files
  31. COPY root/ /
  32. # ports and volumes
  33. EXPOSE 80
  34. VOLUME /config /Thumbs /Pictures