miniflux-legacy/Dockerfile

21 lines
692 B
Docker
Raw Normal View History

2015-07-19 17:19:26 +02:00
FROM ubuntu:14.04
MAINTAINER Frederic Guillot <fred@miniflux.net>
2014-10-27 12:58:42 +01:00
2015-07-19 17:36:05 +02:00
RUN apt-get update && apt-get install -y apache2 php5 php5-sqlite git && apt-get clean && rm -rf /var/lib/apt/lists/*
2015-07-19 17:19:26 +02:00
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN cd /var/www && git clone --depth 1 https://github.com/miniflux/miniflux.git
2015-07-19 17:36:05 +02:00
RUN rm -rf /var/www/html && mv /var/www/miniflux /var/www/html
2015-07-19 17:19:26 +02:00
RUN chown -R www-data:www-data /var/www/html/data
2014-10-27 12:58:42 +01:00
2015-07-19 17:19:26 +02:00
VOLUME /var/www/html/data
2014-10-27 12:58:42 +01:00
EXPOSE 80
2015-07-19 17:19:26 +02:00
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
CMD /usr/sbin/apache2ctl -D FOREGROUND