Browse Source

add config/scripts after we install the wiki/forum

dev
Adrian Malacoda 2 years ago
parent
commit
51f3bfcd1a
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      Dockerfile

+ 5
- 3
Dockerfile View File

@ -1,7 +1,7 @@
FROM debian:stable
RUN apt-get -y update && apt-get -y install nginx php-fpm php-mysql php-apcu php-mbstring php-xml supervisor python-pip \
mysql-client imagemagick curl wget zip unzip php-pclzip
mysql-client imagemagick curl wget zip unzip php-pclzip git
RUN pip install supervisor-stdout
ENV MW_VERSION REL1_30
@ -15,8 +15,6 @@ ENV FORUMS_SOURCE $SOURCE_ROOT/forums
RUN mkdir userdata && mkdir $SOURCE_ROOT && \
mkdir $WIKI_SOURCE && mkdir $FORUMS_SOURCE
ADD configuration configuration
ADD scripts scripts
# Install composer
RUN cd /usr/src && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
@ -32,10 +30,14 @@ RUN /scripts/add_extension.sh FlaggedRevs $MW_VERSION && \
/scripts/add_extension.sh CheckUser $MW_VERSION && \
/scripts/add_extension.sh Contributors $MW_VERSION
# Add our stuff
RUN chown -R www-data:www-data /application
ADD --chown=www-data:www-data application application
RUN cd $WIKI_SOURCE && composer update --no-dev
ADD configuration configuration
ADD scripts scripts
RUN ln -sf /configuration/supervisord.conf /etc/supervisor/supervisord.conf && \
ln -sf /configuration/nginx.conf /etc/nginx/nginx.conf && \
ln -sf /configuration/php-fpm.conf /etc/php/7.0/fpm/php-fpm.conf && \

Loading…
Cancel
Save