Skip to content

Instantly share code, notes, and snippets.

@zmiftah
Created April 2, 2017 05:50
Show Gist options
  • Save zmiftah/1d9b70f314146b17eac23d2a7f7d1927 to your computer and use it in GitHub Desktop.
Save zmiftah/1d9b70f314146b17eac23d2a7f7d1927 to your computer and use it in GitHub Desktop.
From repo the-control-group/docker-laravel5
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