Dockerfile-QEMU-ARM 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Only relevant for Docker Hub or QEMU multi-architecture builds.
  2. # Prefer the normal `Dockerfile` if you are building manually on the targeted architecture.
  3. FROM arm32v7/ubuntu:19.04
  4. # Requires ./hooks/*
  5. COPY ./Docker/qemu-* /usr/bin/
  6. ENV TZ UTC
  7. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  8. RUN apt update && \
  9. apt install --no-install-recommends -y \
  10. ca-certificates cron \
  11. apache2 libapache2-mod-php \
  12. php-curl php-intl php-mbstring php-xml php-zip \
  13. php-sqlite3 php-mysql php-pgsql && \
  14. rm -rf /var/lib/apt/lists/*
  15. RUN mkdir -p /var/www/FreshRSS/ /run/apache2/
  16. WORKDIR /var/www/FreshRSS
  17. COPY . /var/www/FreshRSS
  18. COPY ./Docker/*.Apache.conf /etc/apache2/sites-available/
  19. RUN a2dismod -f alias autoindex negotiation status && \
  20. a2enmod deflate expires headers mime setenvif && \
  21. a2disconf '*' && \
  22. a2dissite '*' && \
  23. a2ensite 'FreshRSS*'
  24. RUN sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" /etc/apache2/apache2.conf && \
  25. sed -r -i "/^\s*Listen /s/^/#/" /etc/apache2/ports.conf && \
  26. touch /var/www/FreshRSS/Docker/env.txt && \
  27. echo "17,47 * * * * . /var/www/FreshRSS/Docker/env.txt; \
  28. su www-data -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \
  29. 2>> /proc/1/fd/2 > /tmp/FreshRSS.log" | crontab -
  30. ENV COPY_SYSLOG_TO_STDERR On
  31. ENV CRON_MIN ''
  32. ENTRYPOINT ["./Docker/entrypoint.sh"]
  33. EXPOSE 80
  34. CMD ([ -z "$CRON_MIN" ] || cron) && \
  35. . /etc/apache2/envvars && \
  36. exec apache2 -D FOREGROUND