forked from stephenliang/mediawiki-dockerfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (15 loc) · 809 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM simplyintricate/nginx-php
MAINTAINER Stephen Liang "[email protected]"
# Download and install Mediawiki
ENV MEDIAWIKI_MAJOR 1.25
ENV MEDIAWIKI_MINOR 1
ADD http://releases.wikimedia.org/mediawiki/${MEDIAWIKI_MAJOR}/mediawiki-${MEDIAWIKI_MAJOR}.${MEDIAWIKI_MINOR}.tar.gz /mediawiki.tar.gz
# Move to the nginx install location and clean up the default items
RUN rm -rf /usr/share/nginx/html/* && tar -xvzf /mediawiki.tar.gz -C /usr/share/nginx/html --strip-components=1 && rm /mediawiki.tar.gz
RUN chown -R www-data:www-data /usr/share/nginx/html
# Remove the image directory, you should volume mount this from a docker volume-only container
RUN rm -rf /usr/share/nginx/html/images
# Add the start script
ADD start.sh /bin/start.sh
CMD /bin/start.sh
VOLUME ["/usr/share/nginx/html/images"]