forked from clue/docker-ttrss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.28 KB
/
Dockerfile
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
FROM ubuntu
MAINTAINER Andrzej Lichnerowicz <andrzej@lichnerowicz.pl>
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
nginx \
supervisor \
php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-json php7.0-pgsql php7.0-mcrypt php7.0-mbstring php-fdomdocument
ADD ttrss.nginx.conf /etc/nginx/sites-available/ttrss
RUN ln -s /etc/nginx/sites-available/ttrss /etc/nginx/sites-enabled/ttrss
RUN rm /etc/nginx/sites-enabled/default
WORKDIR /var/www
RUN rm -rf /var/www/html
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl --no-install-recommends \
&& curl -SL https://tt-rss.org/gitlab/fox/tt-rss/repository/archive.tar.gz?ref=master | tar xzC /var/www --strip-components 1 \
&& apt-get purge -y --auto-remove curl \
&& chown www-data:www-data -R /var/www
RUN cp config.php-dist config.php
EXPOSE 80
ENV SELF_URL_PATH http://localhost
ENV DB_NAME ttrss
ENV DB_USER postgres
ENV DB_PASS ttrss
ADD configure /configure
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN mkdir -p /run/php
RUN chmod a+x /configure
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client --no-install-recommends && rm -rf /var/lib/apt/lists/*
CMD /configure && supervisord -c /etc/supervisor/conf.d/supervisord.conf