Public | Automated Build

Last pushed: 3 years ago
# Hacked from someone else's wallabag image to add postgres support and update to 1.9.1 # Use phusion/baseimage as base image. To make your builds reproducible, make # sure you lock down to a specific version, not to `latest`! # See for # a list of version numbers. FROM phusion/baseimage:0.9.16 # Set correct environment variables. ENV HOME /root # Use baseimage-docker's init system. CMD ["/sbin/my_init"] # Update System RUN apt-get update && apt-get dist-upgrade -y # Install locales ENV DEBIAN_FRONTEND noninteractive RUN locale-gen cs_CZ.UTF-8 RUN locale-gen de_DE.UTF-8 RUN locale-gen es_ES.UTF-8 RUN locale-gen fr_FR.UTF-8 RUN locale-gen it_IT.UTF-8 RUN locale-gen pl_PL.UTF-8 RUN locale-gen pt_BR.UTF-8 RUN locale-gen ru_RU.UTF-8 RUN locale-gen sl_SI.UTF-8 RUN locale-gen uk_UA.UTF-8 # Install wallabag prereqs RUN add-apt-repository ppa:nginx/stable \ && apt-get update \ && apt-get install -y nginx php5-cli php5-common \ php5-curl php5-pgsql php5-fpm php5-gd php5-json php5-tidy wget \ unzip gettext php5-mcrypt # Configure php-fpm RUN echo "cgi.fix_pathinfo = 0" >> /etc/php5/fpm/php.ini RUN echo "daemon off;" >> /etc/nginx/nginx.conf COPY conf/www.conf /etc/php5/fpm/pool.d/www.conf RUN mkdir /etc/service/php5-fpm COPY conf/ /etc/service/php5-fpm/run RUN mkdir /etc/service/nginx COPY conf/ /etc/service/nginx/run # Wallabag version ENV WALLABAG_VERSION 1.9.1 # Extract wallabag code ADD$ /tmp/wallabag-$ RUN mkdir -p /var/www RUN cd /var/www \ && unzip -q /tmp/wallabag-$ \ && mv wallabag-$WALLABAG_VERSION wallabag \ && cd wallabag \ && curl -s | php \ && php composer.phar install \ && mkdir write \ && mv assets cache write \ && sed -i "s#require_once INCLUDES . '/poche/'#require_once ROOT . '/write/'#" inc/poche/ \ && sed -i "s#inc/poche/" install/index.php COPY conf/ /etc/my_init.d/ COPY conf/ /var/www/wallabag/write/ RUN rm -f /tmp/wallabag-$ RUN chown -R www-data:www-data /var/www/wallabag RUN chmod 755 -R /var/www/wallabag # Configure nginx to serve wallabag app COPY conf/nginx-wallabag /etc/nginx/sites-available/default EXPOSE 80 # Expose volumes WORKDIR / VOLUME /wallabag/write # Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Source Repository