2023-10-09 01:32:55 +00:00
|
|
|
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
|
2017-02-17 08:45:48 +00:00
|
|
|
|
2023-10-27 10:10:24 +00:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y libapache2-mod-auth-openidc && rm -rf /var/cache/apt /var/lib/apt/lists
|
2023-10-27 08:36:22 +00:00
|
|
|
|
2017-02-17 08:45:48 +00:00
|
|
|
RUN mkdir -p /app/code
|
|
|
|
WORKDIR /app/code
|
|
|
|
|
2023-10-24 08:18:24 +00:00
|
|
|
ARG VERSION=1.22.0
|
2023-10-09 01:32:55 +00:00
|
|
|
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/${VERSION}.tar.gz | tar -zxvf - --strip-components=1 && \
|
|
|
|
mv data data-orig && ln -s /app/data data
|
2017-02-17 08:45:48 +00:00
|
|
|
|
2022-12-08 15:07:45 +00:00
|
|
|
# official extensions (https://github.com/FreshRSS/Extensions/commits/master)
|
2023-10-27 10:11:03 +00:00
|
|
|
RUN wget https://github.com/FreshRSS/Extensions/archive/8af0d55265ffa03de22ee62b2ae175b3cb038a3c.tar.gz -O - | tar -xz --strip-components=1 -C /app/code/extensions && \
|
2018-05-30 22:09:44 +00:00
|
|
|
mv /app/code/extensions /app/code/extensions-orig && \
|
|
|
|
ln -s /app/data/extensions /app/code/extensions
|
2017-02-18 10:51:44 +00:00
|
|
|
|
2018-05-21 17:07:27 +00:00
|
|
|
# configure apache
|
|
|
|
RUN rm /etc/apache2/sites-enabled/*
|
|
|
|
RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
|
|
|
|
COPY apache/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf
|
|
|
|
|
|
|
|
RUN a2disconf other-vhosts-access-log
|
|
|
|
ADD apache/freshrss.conf /etc/apache2/sites-enabled/freshrss.conf
|
|
|
|
RUN echo "Listen 8000" > /etc/apache2/ports.conf
|
|
|
|
|
2023-10-27 08:36:22 +00:00
|
|
|
RUN a2enmod headers expires deflate mime dir rewrite setenvif auth_openidc
|
2017-02-17 08:45:48 +00:00
|
|
|
|
2019-04-04 17:18:44 +00:00
|
|
|
RUN rm -rf /var/lib/php && ln -s /run/php /var/lib/php
|
2017-06-01 08:47:09 +00:00
|
|
|
|
2022-12-08 13:13:03 +00:00
|
|
|
RUN crudini --set /etc/php/8.1/apache2/php.ini PHP upload_max_filesize 64M && \
|
|
|
|
crudini --set /etc/php/8.1/apache2/php.ini PHP post_max_size 64M && \
|
|
|
|
crudini --set /etc/php/8.1/apache2/php.ini PHP memory_limit 64M && \
|
|
|
|
crudini --set /etc/php/8.1/apache2/php.ini Session session.save_path /run/php/session && \
|
|
|
|
crudini --set /etc/php/8.1/apache2/php.ini Session session.gc_probability 1 && \
|
|
|
|
crudini --set /etc/php/8.1/apache2/php.ini Session session.gc_divisor 100
|
2017-02-17 10:28:42 +00:00
|
|
|
|
2022-12-08 13:13:03 +00:00
|
|
|
RUN ln -s /app/data/php.ini /etc/php/8.1/apache2/conf.d/99-cloudron.ini && \
|
|
|
|
ln -s /app/data/php.ini /etc/php/8.1/cli/conf.d/99-cloudron.ini
|
2020-09-23 21:11:56 +00:00
|
|
|
|
2017-02-17 08:45:48 +00:00
|
|
|
ADD start.sh /app/code/start.sh
|
|
|
|
|
|
|
|
CMD [ "/app/code/start.sh" ]
|