2017-02-18 10:51:44 +00:00
|
|
|
FROM cloudron/base:0.10.0
|
2017-02-17 08:45:48 +00:00
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install php php-curl php-gmp php-intl php-mbstring php-xml php-zip \
|
|
|
|
libapache2-mod-php mysql-client php-mysql
|
|
|
|
|
2018-05-21 17:04:40 +00:00
|
|
|
ENV EXTENSIONS_VERSION b63f55d6fdd8e93da846bb741c3fed12d50909be
|
2017-02-17 08:45:48 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /app/code
|
|
|
|
WORKDIR /app/code
|
|
|
|
|
2018-05-31 16:36:49 +00:00
|
|
|
# contains fix for extensions_path (see #2)
|
|
|
|
RUN curl -L https://github.com/cloudron-io/FreshRSS/archive/2c7c367a5b38870e3250b1359ead3c2665410f89.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
|
2018-05-30 22:09:44 +00:00
|
|
|
RUN wget https://github.com/FreshRSS/Extensions/archive/${EXTENSIONS_VERSION}.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
|
2017-02-17 08:45:48 +00:00
|
|
|
|
2017-02-17 10:28:42 +00:00
|
|
|
RUN rm -rf /var/lib/php \
|
2017-06-01 08:47:09 +00:00
|
|
|
&& ln -s /run/php /var/lib/php \
|
|
|
|
&& mkdir -p /run/php/session
|
|
|
|
|
|
|
|
RUN crudini --set /etc/php/7.0/apache2/php.ini PHP upload_max_filesize 64M && \
|
|
|
|
crudini --set /etc/php/7.0/apache2/php.ini PHP post_max_size 64M && \
|
|
|
|
crudini --set /etc/php/7.0/apache2/php.ini PHP memory_limit 64M && \
|
|
|
|
crudini --set /etc/php/7.0/apache2/php.ini Session session.save_path /run/php/session && \
|
|
|
|
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_probability 1 && \
|
|
|
|
crudini --set /etc/php/7.0/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" ]
|