feat: add dokuwiki
This commit is contained in:
parent
40915f4e6a
commit
3a2ced0118
1 changed files with 46 additions and 0 deletions
46
dokuwiki/Dockerfile
Normal file
46
dokuwiki/Dockerfile
Normal file
|
@ -0,0 +1,46 @@
|
|||
FROM php:7-apache
|
||||
ENV DOKUWIKI_VERSION 2018-04-22b
|
||||
|
||||
RUN set -ex; \
|
||||
\
|
||||
savedAptMark="$(apt-mark showmanual)"; \
|
||||
\
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
rsync \
|
||||
libcurl4-openssl-dev \
|
||||
libevent-dev \
|
||||
libfreetype6-dev \
|
||||
libicu-dev \
|
||||
libjpeg-dev \
|
||||
libldap2-dev \
|
||||
libmcrypt-dev \
|
||||
libmemcached-dev \
|
||||
libpng-dev \
|
||||
libpq-dev \
|
||||
libxml2-dev \
|
||||
libmagickwand-dev \
|
||||
libzip-dev \
|
||||
; \
|
||||
\
|
||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
||||
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
||||
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
|
||||
docker-php-ext-install \
|
||||
gd \
|
||||
; \
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN set -ex; \
|
||||
curl -fsSL -o dokuwiki.tgz \
|
||||
"https://download.dokuwiki.org/src/dokuwiki/dokuwiki-${DOKUWIKI_VERSION}.tgz"; \
|
||||
tar -xzf dokuwiki.tgz -C /tmp; \
|
||||
rsync -a /tmp/dokuwiki-${DOKUWIKI_VERSION}/ /var/www/html/; \
|
||||
chown -R root: /var/www/html; \
|
||||
chown -R www-data: /var/www/html/data /var/www/html/conf; \
|
||||
rm -rf /tmp/dokuwiki-${DOKUWIKI_VERSION}/; \
|
||||
rm dokuwiki.tgz;
|
||||
|
||||
#ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["apache2-foreground"]
|
Loading…
Reference in a new issue