Last active
December 22, 2016 06:50
-
-
Save Mo3g4u/7855b282ef144a97a7e4936a58f1894f to your computer and use it in GitHub Desktop.
Docker php7環境構築用Dockerfileのたたき台
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 centos:latest | |
MAINTAINER 0.1 Mo3g4u | |
RUN ["yum", "update", "-y", "&&", "yum", "clean", "all"] | |
RUN ["yum", "install", "-y", "epel-release"] | |
RUN ["rpm", "-Uvh", "http://rpms.famillecollet.com/enterprise/remi-release-7.rpm"] | |
RUN ["yum", "install", "-y", "--enablerepo=remi", "gd"] | |
RUN ["yum", "install", "-y", "--enablerepo=remi,remi-php70", "php", "php-devel", "php-mbstring", "php-pdo", "php-gd", "php-fpm", "php-mysqlnd"] | |
RUN ["yum", "install", "-y", "sed"] | |
RUN ["yum", "install", "-y", "less"] | |
RUN ["yum", "install", "-y", "iproute"] | |
RUN sed -i -e "s/;date.timezone *=.*$/date.timezone = Asia\/Tokyo/" /etc/php.ini | |
CMD ["/usr/sbin/httpd","-D","FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment