forked from uvatbc/docker-ttrss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (47 loc) · 1.71 KB
/
Dockerfile
File metadata and controls
52 lines (47 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM debian:jessie
MAINTAINER Peter Reuterås <[email protected]>
## Install tools and libraries
RUN apt-get update -yqq && \
apt-get install -yqq --no-install-recommends \
apache2 \
ca-certificates \
git \
php5 \
libapache2-mod-php5 \
libxml2-utils \
php5-curl \
php5-gd \
php5-pgsql \
php5-mcrypt \
postgresql-client \
supervisor \
tidy && \
# Checkout TT-RSS and plugins
git clone https://tt-rss.org/gitlab/fox/tt-rss.git /var/www/html/ttrss && \
git clone https://github.com/reuteras/ttrss_plugin-af_feedmod.git /var/www/html/ttrss/plugins.local/af_feedmod && \
git clone https://github.com/fastcat/tt-rss-ff-xmllint /tmp/ff_xmllint && \
mv /tmp/ff_xmllint/ff_xmllint /var/www/html/ttrss/plugins.local && \
# Clean up
rm -rf /var/www/html/ttrss/.git && \
rm -rf /var/www/html/ttrss/plugins.local/af_feedmod/.git && \
apt-get remove -y git && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /usr/share/doc /usr/local/share/man /var/cache/debconf/*-old
# Copy files to docker
COPY ttrss.conf /etc/apache2/sites-available/ttrss.conf
COPY config.php /var/www/html/ttrss/config.php
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY entrypoint.sh /entrypoint.sh
# Configure Apache
RUN chmod 644 /etc/apache2/sites-available/ttrss.conf && \
a2ensite ttrss.conf && \
a2dissite 000-default && \
a2dissite default-ssl && \
chmod +x /entrypoint.sh && \
chown -R www-data:www-data /var/www/html/ttrss
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]