-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (17 loc) · 861 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:apache
MAINTAINER OEMS <oscaremu@gmail.com>
ENV WIKKAWIKI_VERSION "1.4.0"
RUN docker-php-ext-install pdo pdo_mysql
# Interestingly, the URL download and archive unpacking features cannot be used together.
# Any archives copied via URL will NOT be automatically unpacked.
ADD https://github.com/wikkawik/WikkaWiki/archive/$WIKKAWIKI_VERSION.tar.gz /var/www/html/wikka/$WIKKAWIKI_VERSION.tar.gz
RUN mkdir -p /var/www/html/wikka \
&& cd /var/www/html/wikka \
&& tar xzf "$WIKKAWIKI_VERSION.tar.gz" --strip 1 \
&& rm "$WIKKAWIKI_VERSION.tar.gz"
ADD setup/ /setup/
RUN chown -R www-data:www-data /var/www \
&& a2enmod rewrite \
&& rm /etc/apache2/sites-enabled/000-default.conf \
&& cp /setup/wikka.conf /etc/apache2/sites-available/wikka.conf \
&& ln -s /etc/apache2/sites-available/wikka.conf /etc/apache2/sites-enabled/