Created
June 22, 2018 14:28
-
-
Save saadwaseem/829a6ea2e5a18f093b562b0556f7c9c0 to your computer and use it in GitHub Desktop.
Dockerfile for Drupal 8 Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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