41 lines
1.1 KiB
Docker
41 lines
1.1 KiB
Docker
FROM ulsmith/alpine-apache-php7
|
|
|
|
|
|
RUN apk update \
|
|
&& apk upgrade \
|
|
&& apk add --update \
|
|
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 docker/setup_openrc.sh /usr/local/bin/
|
|
COPY tt-rss/* /app/public/tt-rss/
|
|
COPY docker/ttrss-openrc-apache /etc/init.d/apache
|
|
COPY docker/ttrss-openrc-ttrssupdate /etc/init.d/ttrssupdate
|
|
COPY docker/ttrss-openrc-ntpd /etc/init.d/ntpd
|
|
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/ \
|
|
&& /usr/local/bin/setup_openrc.sh \
|
|
&& apk --no-cache add util-linux \
|
|
&& rc-update add ntpd \
|
|
&& rc-update add apache \
|
|
&& rc-update add ttrssupdate
|
|
|
|
|
|
ENTRYPOINT []
|
|
CMD ["/sbin/init"]
|
|
|
|
# vim: set ft=dockerfile:
|