-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (17 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM chambana/uwsgi-php:latest
MAINTAINER Josh King <[email protected]>
RUN echo "dokuwiki dokuwiki/wiki/password password dokuwiki" | debconf-set-selections && \
echo "dokuwiki dokuwiki/wiki/confirm password dokuwiki" | debconf-set-selections && \
echo "dokuwiki dokuwiki/system/documentroot string /" | debconf-set-selections && \
echo "dokuwiki dokuwiki/system/writeconf boolean true" | debconf-set-selections && \
echo "dokuwiki dokuwiki/system/writeplugins boolean true" | debconf-set-selections
RUN apt-get -qq update && \
apt-get install -y --no-install-recommends php-cgi php-apcu php-cli php-gd php-ldap wget dokuwiki && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Package installation doesn't always seem to set correct perms on plugins directory
RUN chown -R www-data:www-data /var/lib/dokuwiki/lib/plugins /var/lib/dokuwiki/lib/tpl
ADD dokuwiki.conf /etc/uwsgi/apps-available/dokuwiki.conf
EXPOSE 80
VOLUME ["/var/lib/dokuwiki", "/etc/dokuwiki"]
CMD ["uwsgi", "--uid", "www-data", "--gid", "www-data", "--ini", "/etc/uwsgi/apps-available/dokuwiki.conf"]