3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/Dockerfile

29 lines
778 B
Docker
Raw Normal View History

# 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.
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.
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