Dockerfile.aarch64 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM lsiobase/nginx:arm64v8-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. echo "**** Tag this image with current version ****" && \
  18. if [ -z ${PHOTOSHOW_COMMIT+x} ]; then \
  19. PHOTOSHOW_COMMIT=$(curl -sX GET https://api.github.com/repos/thibaud-rohmer/PhotoShow/commits/master \
  20. | jq -r '. | .sha'); \
  21. fi && \
  22. echo ${PHOTOSHOW_COMMIT} > /version.txt && \
  23. echo "**** configure php ****" && \
  24. echo "[www]" >> /etc/php7/php-fpm.conf && \
  25. echo "php_admin_value[upload_max_filesize] = 10M" >> /etc/php7/php-fpm.conf && \
  26. echo "php_admin_value[post_max_size] = 10M" >> /etc/php7/php-fpm.conf && \
  27. echo "php_admin_value[memory_limit] = 64M" >> /etc/php7/php-fpm.conf && \
  28. echo "php_admin_value[max_execution_time] = 15" >> /etc/php7/php-fpm.conf
  29. # add local files
  30. COPY root/ /
  31. # ports and volumes
  32. EXPOSE 80
  33. VOLUME /config /Thumbs /Pictures