2015-05-19 12:42:59 +02:00
|
|
|
#
|
2015-08-24 18:13:01 +02:00
|
|
|
# Dockerfile for dokuwiki
|
2015-05-19 12:42:59 +02:00
|
|
|
#
|
2014-12-17 09:34:20 +02:00
|
|
|
|
2020-01-09 11:22:20 +02:00
|
|
|
FROM alpine:3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2014-12-17 09:34:20 +02:00
|
|
|
|
2015-05-19 12:42:59 +02:00
|
|
|
WORKDIR /var/www/html
|
2014-12-17 09:34:20 +02:00
|
|
|
|
2016-03-31 11:54:13 +02:00
|
|
|
RUN set -xe \
|
2020-01-09 11:22:20 +02:00
|
|
|
&& apk add --no-cache \
|
|
|
|
ca-certificates \
|
|
|
|
gzip \
|
|
|
|
nginx \
|
|
|
|
openssl \
|
2022-01-24 06:04:17 +02:00
|
|
|
php7-fpm \
|
|
|
|
php7-json \
|
|
|
|
php7-openssl \
|
|
|
|
php7-pdo_sqlite \
|
|
|
|
php7-session \
|
|
|
|
php7-sqlite3 \
|
|
|
|
php7-xml \
|
|
|
|
php7-zlib \
|
2020-01-09 11:22:20 +02:00
|
|
|
tar \
|
2015-08-24 18:13:01 +02:00
|
|
|
&& wget -O- http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | tar xz --strip 1 \
|
2016-07-04 09:53:13 +02:00
|
|
|
&& chown -R nobody:nobody .
|
2015-08-24 18:13:01 +02:00
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
2014-12-17 09:34:20 +02:00
|
|
|
|
2015-08-26 15:33:48 +02:00
|
|
|
VOLUME /var/www/html/conf \
|
|
|
|
/var/www/html/data/pages \
|
2015-05-19 12:42:59 +02:00
|
|
|
/var/www/html/data/meta \
|
|
|
|
/var/www/html/data/media \
|
|
|
|
/var/www/html/data/media_attic \
|
|
|
|
/var/www/html/data/media_meta \
|
|
|
|
/var/www/html/data/attic \
|
2015-08-26 15:33:48 +02:00
|
|
|
/var/www/html/lib/plugins
|
2014-12-17 09:34:20 +02:00
|
|
|
|
2015-08-24 18:13:01 +02:00
|
|
|
EXPOSE 80
|
|
|
|
|
2022-01-24 06:04:17 +02:00
|
|
|
CMD php-fpm7 && nginx -g 'daemon off;'
|