Created
April 2, 2017 05:50
-
-
Save zmiftah/1d9b70f314146b17eac23d2a7f7d1927 to your computer and use it in GitHub Desktop.
From repo the-control-group/docker-laravel5
This file contains hidden or 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 php:7.0-apache | |
MAINTAINER Tony Lea <[email protected]> | |
EXPOSE 80 | |
RUN docker-php-ext-install pdo pdo_mysql mysqli | |
RUN apt-get update && \ | |
apt-get install -qqy \ | |
libmcrypt-dev \ | |
git-core \ | |
zlib1g-dev && \ | |
docker-php-ext-install \ | |
bcmath \ | |
mbstring \ | |
mcrypt \ | |
zip | |
WORKDIR /var/www/html | |
ENV COMPOSER_HOME=/var/www/html | |
RUN curl -sS https://getcomposer.org/installer | php && \ | |
mv composer.phar /usr/local/bin/composer | |
RUN | |
mysql -u root -e "CREATE DATABASE testdb" && \ | |
mysql -u root testdb < /var/www/html/storage/test_db.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment