Feedati/docker/Dockerfile-tt-rss
boyska d14a4d442f [TT] stop using OpenRC
it was becoming too complex; now we are running multiple containers
from the same image. Coordination between those processes is not needed
(db is where it happens), so it should work.

waiting psql to be alive is a duty moved to a wrapper script "wait-db"
2018-08-19 02:19:28 +02:00

17 lines
860 B
Docker

FROM ulsmith/alpine-apache-php7
RUN apk update && apk upgrade && apk add util-linux 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/
COPY tt-rss/* /app/public/tt-rss/
COPY docker/wait-db /usr/bin/
RUN mkdir -p /app/public/tt-rss/ /var/cache/tt-rss/images \
/var/cache/tt-rss/upload /var/cache/tt-rss/export/ \
/var/cache/tt-rss/js /var/lock/tt-rss/ && \
chown -R apache:root /app/public /var/cache/tt-rss/ /var/lock/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 &&\
echo -e 'TransferLog "/proc/self/fd/1"\nListen 0.0.0.0:80' >> /etc/apache2/httpd.conf
# vim: set ft=dockerfile: