2018-08-09 16:52:03 +02:00
|
|
|
FROM ulsmith/alpine-apache-php7
|
2018-08-17 15:56:50 +02:00
|
|
|
|
2018-08-17 18:09:41 +02:00
|
|
|
|
2018-08-17 18:16:20 +02:00
|
|
|
RUN apk update \
|
|
|
|
&& apk upgrade \
|
|
|
|
&& apk add --update \
|
2018-08-17 18:09:41 +02:00
|
|
|
php7-pgsql \
|
|
|
|
php7-fileinfo \
|
|
|
|
openrc \
|
|
|
|
postgresql-client \
|
|
|
|
&& apk del \
|
|
|
|
php7-pdo_mysql \
|
|
|
|
php7-pdo_odbc \
|
|
|
|
php7-pdo_sqlite \
|
|
|
|
db \
|
|
|
|
php7-redis \
|
|
|
|
php7-ftp \
|
|
|
|
&& rm -rf /var/cache/apk/
|
2018-08-17 15:56:50 +02:00
|
|
|
COPY tt-rss/* /app/public/tt-rss/
|
2018-08-19 01:55:53 +02:00
|
|
|
COPY docker/wait-db /usr/bin/
|
2018-08-19 14:57:31 +02:00
|
|
|
COPY docker/ttrss-apache-tt.conf /etc/apache2/conf.d/tt.conf
|
2018-08-17 15:56:50 +02:00
|
|
|
|
2018-08-10 02:27:17 +02:00
|
|
|
RUN mkdir -p /app/public/tt-rss/ /var/cache/tt-rss/images \
|
2018-08-17 18:09:41 +02:00
|
|
|
/var/cache/tt-rss/upload /var/cache/tt-rss/export/ \
|
2018-08-20 09:37:02 +02:00
|
|
|
/var/cache/tt-rss/js /var/lock/tt-rss/ /var/lib/tt-rss/feed-icons/ \
|
2018-08-17 18:09:41 +02:00
|
|
|
&& chown -R apache:root \
|
|
|
|
/app/public \
|
|
|
|
/var/cache/tt-rss/ \
|
|
|
|
/var/lock/tt-rss/ \
|
2018-08-20 09:37:02 +02:00
|
|
|
/var/lib/tt-rss/ \
|
|
|
|
&& echo -e 'log_errors = On\nerror_log = syslog' >> /etc/php7/php.ini \
|
|
|
|
&& sed -i '/^Listen/d' /etc/apache2/httpd.conf \
|
|
|
|
&& sed -i -r 's@ErrorLog .*@ErrorLog "/proc/self/fd/2"@i' /etc/apache2/httpd.conf
|
2018-08-10 02:27:17 +02:00
|
|
|
|
2018-08-09 23:51:31 +02:00
|
|
|
|
|
|
|
# vim: set ft=dockerfile:
|