Created
March 13, 2018 08:58
-
-
Save bagpack/ca320b1f7ac0b22c56f4375aa4e75cff to your computer and use it in GitHub Desktop.
php-5.6-apache-mcrypt
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:5.6-apache | |
ENV APP_ROOT /var/www | |
WORKDIR $APP_ROOT | |
RUN apt-get update && apt-get install -y \ | |
libmcrypt-dev | |
RUN docker-php-ext-install pdo_mysql mysqli mcrypt | |
RUN a2enmod vhost_alias && a2enmod rewrite && service apache2 restart | |
RUN echo 'date.timezone = "Asia/Tokyo"' >> /usr/local/etc/php/php.ini | |
EXPOSE 80 | |
# Usage: | |
# docker build . -t php-5.6-apache | |
# docker run -p 3000:80 -v `pwd`/public:/var/www/html -v `pwd`:/var/www -d php-5.6-apache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment