|
@@ -1,3 +1,4 @@
|
|
|
|
|
+# Test image for development
|
|
|
FROM alpine:edge
|
|
FROM alpine:edge
|
|
|
|
|
|
|
|
ENV TZ=UTC
|
|
ENV TZ=UTC
|
|
@@ -21,7 +22,6 @@ ARG FRESHRSS_VERSION
|
|
|
ARG SOURCE_COMMIT
|
|
ARG SOURCE_COMMIT
|
|
|
|
|
|
|
|
LABEL \
|
|
LABEL \
|
|
|
- org.opencontainers.image.authors="Alkarex" \
|
|
|
|
|
org.opencontainers.image.description="A self-hosted RSS feed aggregator" \
|
|
org.opencontainers.image.description="A self-hosted RSS feed aggregator" \
|
|
|
org.opencontainers.image.documentation="https://freshrss.github.io/FreshRSS/" \
|
|
org.opencontainers.image.documentation="https://freshrss.github.io/FreshRSS/" \
|
|
|
org.opencontainers.image.licenses="AGPL-3.0" \
|
|
org.opencontainers.image.licenses="AGPL-3.0" \
|
|
@@ -32,19 +32,24 @@ LABEL \
|
|
|
org.opencontainers.image.vendor="FreshRSS" \
|
|
org.opencontainers.image.vendor="FreshRSS" \
|
|
|
org.opencontainers.image.version="$FRESHRSS_VERSION"
|
|
org.opencontainers.image.version="$FRESHRSS_VERSION"
|
|
|
|
|
|
|
|
-RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \
|
|
|
|
|
|
|
+RUN \
|
|
|
|
|
+ # Disable unwanted Apache modules and configurations
|
|
|
|
|
+ rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \
|
|
|
/etc/apache2/conf.d/status.conf /etc/apache2/conf.d/userdir.conf && \
|
|
/etc/apache2/conf.d/status.conf /etc/apache2/conf.d/userdir.conf && \
|
|
|
sed -r -i "/^\s*LoadModule .*mod_(alias|autoindex|negotiation|status).so$/s/^/#/" \
|
|
sed -r -i "/^\s*LoadModule .*mod_(alias|autoindex|negotiation|status).so$/s/^/#/" \
|
|
|
/etc/apache2/httpd.conf && \
|
|
/etc/apache2/httpd.conf && \
|
|
|
- sed -r -i "/^\s*#\s*LoadModule .*mod_(deflate|expires|filter|headers|mime|remoteip|setenvif).so$/s/^\s*#//" \
|
|
|
|
|
- /etc/apache2/httpd.conf && \
|
|
|
|
|
sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \
|
|
sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \
|
|
|
/etc/apache2/httpd.conf && \
|
|
/etc/apache2/httpd.conf && \
|
|
|
mv /etc/apache2/conf.d/mod-auth-openidc.conf /etc/apache2/conf.d/mod-auth-openidc.conf.bak && \
|
|
mv /etc/apache2/conf.d/mod-auth-openidc.conf /etc/apache2/conf.d/mod-auth-openidc.conf.bak && \
|
|
|
|
|
+ # Enable required Apache modules
|
|
|
|
|
+ sed -r -i "/^\s*#\s*LoadModule .*mod_(deflate|expires|filter|headers|mime|remoteip|setenvif).so$/s/^\s*#//" \
|
|
|
|
|
+ /etc/apache2/httpd.conf && \
|
|
|
|
|
+ # PHP configuration
|
|
|
if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php85 /usr/bin/php; else true; fi && \
|
|
if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php85 /usr/bin/php; else true; fi && \
|
|
|
echo 'memory_limit = 256M' > /etc/php85/conf.d/10_memory.ini && \
|
|
echo 'memory_limit = 256M' > /etc/php85/conf.d/10_memory.ini && \
|
|
|
- # Disable built-in updates when using Docker, as the full image is supposed to be updated instead.
|
|
|
|
|
|
|
+ # Disable built-in FreshRSS updates when using Docker, as the full image is supposed to be updated instead.
|
|
|
sed -r -i "\\#disable_update#s#^.*#\t'disable_update' => true,#" ./config.default.php && \
|
|
sed -r -i "\\#disable_update#s#^.*#\t'disable_update' => true,#" ./config.default.php && \
|
|
|
|
|
+ # Configure cron job
|
|
|
touch /var/www/FreshRSS/Docker/env.txt && \
|
|
touch /var/www/FreshRSS/Docker/env.txt && \
|
|
|
echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \
|
|
echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \
|
|
|
su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \
|
|
su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \
|