23 lines
571 B
Docker
23 lines
571 B
Docker
# Mediawiki-Apache
|
|
#
|
|
# Version 1.0
|
|
|
|
FROM tutum/apache-php:latest
|
|
MAINTAINER John E Arnold <iohannes.eduardus.arnold@gmail.com>
|
|
|
|
WORKDIR /
|
|
|
|
# Remove the old hello world app and grab Mediawiki source
|
|
RUN apt-get update && apt-get install -yq git && rm -rf /var/lib/apt/lists/*
|
|
RUN rm -fr /app && git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git /app
|
|
RUN cd /app && git checkout -b REL1_23 origin/REL1_23
|
|
|
|
# Create the section for persistent files
|
|
RUN mkdir /var/lib/mediawiki
|
|
|
|
ADD setup.sh /setup.sh
|
|
RUN chmod +x setup.sh
|
|
|
|
EXPOSE 80
|
|
CMD ./setup.sh && ./run.sh
|