Loading Dockerfile 0 → 100644 +23 −0 Original line number Diff line number Diff line FROM php:7-apache MAINTAINER Sébastien Luttringer <seblu@seblu.net> ENV DOKUWIKI_VERSION 2017-02-19e RUN apt-get update \ && apt-get dist-upgrade -y \ && apt-get install -y --no-install-recommends libfreetype6-dev libjpeg62-turbo-dev libpng-dev \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/apt/* \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-png-dir=/usr --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd \ && a2enmod rewrite \ && sed -i 's/^ServerSignature .*/ServerSignature Off/' /etc/apache2/conf-available/security.conf \ && sed -i 's/^ServerTokens .*/ServerTokens Minimal/' /etc/apache2/conf-available/security.conf \ && curl -sL https://github.com/splitbrain/dokuwiki/archive/release_stable_$DOKUWIKI_VERSION.tar.gz \ | tar xz -C /var/www/html --strip-components=1 \ && cp /var/www/html/.htaccess.dist /var/www/html/conf/apache.conf \ && ln -s conf/apache.conf /var/www/html/.htaccess \ && chown -R www-data:www-data /var/www/html VOLUME ["/var/www/html/data/","/var/www/html/lib/plugins/","/var/www/html/conf/","/var/www/html/lib/tpl/"] build.sh 0 → 100755 +13 −0 Original line number Diff line number Diff line #!/bin/bash version=$(sed -rn 's,ENV DOKUWIKI_VERSION (.*),\1,p' Dockerfile) name=docker.seblu.net/docker/dokuwiki:$version docker build -t "$name" . if [[ $1 == -p ]]; then docker push "$name" else echo echo ::: to push use -p switch or run: echo ::: docker push "$name" fi Loading
Dockerfile 0 → 100644 +23 −0 Original line number Diff line number Diff line FROM php:7-apache MAINTAINER Sébastien Luttringer <seblu@seblu.net> ENV DOKUWIKI_VERSION 2017-02-19e RUN apt-get update \ && apt-get dist-upgrade -y \ && apt-get install -y --no-install-recommends libfreetype6-dev libjpeg62-turbo-dev libpng-dev \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/apt/* \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-png-dir=/usr --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd \ && a2enmod rewrite \ && sed -i 's/^ServerSignature .*/ServerSignature Off/' /etc/apache2/conf-available/security.conf \ && sed -i 's/^ServerTokens .*/ServerTokens Minimal/' /etc/apache2/conf-available/security.conf \ && curl -sL https://github.com/splitbrain/dokuwiki/archive/release_stable_$DOKUWIKI_VERSION.tar.gz \ | tar xz -C /var/www/html --strip-components=1 \ && cp /var/www/html/.htaccess.dist /var/www/html/conf/apache.conf \ && ln -s conf/apache.conf /var/www/html/.htaccess \ && chown -R www-data:www-data /var/www/html VOLUME ["/var/www/html/data/","/var/www/html/lib/plugins/","/var/www/html/conf/","/var/www/html/lib/tpl/"]
build.sh 0 → 100755 +13 −0 Original line number Diff line number Diff line #!/bin/bash version=$(sed -rn 's,ENV DOKUWIKI_VERSION (.*),\1,p' Dockerfile) name=docker.seblu.net/docker/dokuwiki:$version docker build -t "$name" . if [[ $1 == -p ]]; then docker push "$name" else echo echo ::: to push use -p switch or run: echo ::: docker push "$name" fi