1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00
dockerfiles/dokuwiki/Dockerfile

40 lines
1.0 KiB
Docker
Raw Normal View History

2015-05-19 18:42:59 +08:00
#
2015-08-25 00:13:01 +08:00
# Dockerfile for dokuwiki
2015-05-19 18:42:59 +08:00
#
2014-12-17 15:34:20 +08:00
2015-08-25 00:13:01 +08:00
FROM alpine
2017-05-08 07:05:07 +08:00
MAINTAINER kev <noreply@easypi.pro>
2014-12-17 15:34:20 +08:00
2015-05-19 18:42:59 +08:00
WORKDIR /var/www/html
2014-12-17 15:34:20 +08:00
2016-03-31 17:54:13 +08:00
RUN set -xe \
2016-07-04 15:53:13 +08:00
&& apk add --no-cache ca-certificates \
gzip \
nginx \
openssl \
php5-fpm \
php5-openssl \
php5-pdo_sqlite \
php5-sqlite3 \
php5-xml \
php5-zlib \
tar \
2016-06-07 09:55:54 +08:00
&& touch /etc/php5/fpm.d/empty.conf \
2015-08-25 00:13:01 +08:00
&& wget -O- http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | tar xz --strip 1 \
2016-07-04 15:53:13 +08:00
&& chown -R nobody:nobody .
2015-08-25 00:13:01 +08:00
COPY nginx.conf /etc/nginx/nginx.conf
2014-12-17 15:34:20 +08:00
2015-08-26 21:33:48 +08:00
VOLUME /var/www/html/conf \
/var/www/html/data/pages \
2015-05-19 18:42:59 +08: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 21:33:48 +08:00
/var/www/html/lib/plugins
2014-12-17 15:34:20 +08:00
2015-08-25 00:13:01 +08:00
EXPOSE 80
2017-05-30 11:19:31 +08:00
CMD php-fpm5 && nginx -g 'daemon off;'