Dockerfile.armhf 1.2 KB

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