47 lines
1.4 KiB
Docker
47 lines
1.4 KiB
Docker
|
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"]
|