freshrss-app/Dockerfile

39 lines
1.6 KiB
Docker
Raw Normal View History

2020-05-30 03:30:27 +00:00
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
2017-02-17 08:45:48 +00:00
RUN mkdir -p /app/code
WORKDIR /app/code
2020-06-02 00:27:32 +00:00
ARG VERSION=1.16.2
2019-10-31 22:56:46 +00:00
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/${VERSION}.tar.gz | tar -zxvf - --strip-components=1
2017-02-17 08:45:48 +00:00
2018-05-21 17:05:19 +00:00
RUN mv data data-orig && ln -s /app/data data
2017-02-17 08:45:48 +00:00
2018-05-21 17:04:40 +00:00
# official extensions
2020-04-09 16:55:30 +00:00
RUN wget https://github.com/FreshRSS/Extensions/archive/de83a1096c10644098291539cabfbecd38d5a28f.tar.gz -O - | tar -xz --strip-components=1 -C /app/code/extensions && \
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
RUN a2enmod headers expires deflate mime dir rewrite setenvif
2017-02-17 08:45:48 +00:00
RUN rm -rf /var/lib/php && ln -s /run/php /var/lib/php
2020-05-30 03:30:27 +00:00
RUN crudini --set /etc/php/7.3/apache2/php.ini PHP upload_max_filesize 64M && \
crudini --set /etc/php/7.3/apache2/php.ini PHP post_max_size 64M && \
crudini --set /etc/php/7.3/apache2/php.ini PHP memory_limit 64M && \
crudini --set /etc/php/7.3/apache2/php.ini Session session.save_path /run/php/session && \
crudini --set /etc/php/7.3/apache2/php.ini Session session.gc_probability 1 && \
crudini --set /etc/php/7.3/apache2/php.ini Session session.gc_divisor 100
2017-02-17 10:28:42 +00:00
2017-02-17 08:45:48 +00:00
ADD start.sh /app/code/start.sh
CMD [ "/app/code/start.sh" ]