Skip to content

Instantly share code, notes, and snippets.

@saadwaseem
Created June 22, 2018 14:28
Show Gist options
  • Save saadwaseem/829a6ea2e5a18f093b562b0556f7c9c0 to your computer and use it in GitHub Desktop.
Save saadwaseem/829a6ea2e5a18f093b562b0556f7c9c0 to your computer and use it in GitHub Desktop.
Dockerfile for Drupal 8 Apache
From drupal:8.5-apache
RUN apt-get update && apt-get install -y \
curl \
git \
mysql-client \
vim \
wget
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php && \
mv composer.phar /usr/local/bin/composer && \
php -r "unlink('composer-setup.php');"
RUN wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar && \
chmod +x drush.phar && \
mv drush.phar /usr/local/bin/drush
RUN rm -rf /var/www/html/*
ADD ./app/web /var/www/html
WORKDIR /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment