2016-10-12 07:15:29 +02:00
|
|
|
# Inherit from the PHP 5.6 Apache image on Docker Hub.
|
|
|
|
FROM php:5.6-apache
|
2016-08-05 08:01:14 +02:00
|
|
|
|
2016-10-16 15:45:41 +02:00
|
|
|
# Enable Apache rewrite module.
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
|
2016-09-23 17:23:40 +02:00
|
|
|
# Install dependencies via apt-get.
|
2016-09-23 17:14:51 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
git \
|
|
|
|
libgeos-dev \
|
|
|
|
unzip
|
2016-08-05 08:01:14 +02:00
|
|
|
|
2016-09-23 17:23:40 +02:00
|
|
|
# Install Drush.
|
2016-10-12 07:15:14 +02:00
|
|
|
RUN curl -fSL "http://files.drush.org/drush.phar" -o /usr/local/bin/drush \
|
|
|
|
&& chmod +x /usr/local/bin/drush
|
2016-08-05 08:01:14 +02:00
|
|
|
|
2016-09-23 17:23:40 +02:00
|
|
|
# Build farmOS with Drush Make.
|
2016-09-23 17:23:06 +02:00
|
|
|
COPY build-farm.make /farmOS/build-farm.make
|
|
|
|
COPY drupal-org-core.make /farmOS/drupal-org-core.make
|
2016-09-20 20:12:20 +02:00
|
|
|
WORKDIR /farmOS
|
|
|
|
RUN cd /farmOS && drush make build-farm.make farm
|
2016-09-23 17:23:40 +02:00
|
|
|
|
|
|
|
# Replace /var/www/html with farmOS.
|
|
|
|
RUN rm -rf /var/www/html && ln -s /farmOS/farm /var/www/html
|
|
|
|
|
|
|
|
# Change ownership of the Drupal sites folder to www-data.
|
|
|
|
RUN chown -R www-data:www-data /farmOS/farm/sites
|
2016-09-20 20:08:45 +02:00
|
|
|
|