Skip to content

Instantly share code, notes, and snippets.

@Mo3g4u
Last active December 22, 2016 06:50
Show Gist options
  • Save Mo3g4u/7855b282ef144a97a7e4936a58f1894f to your computer and use it in GitHub Desktop.
Save Mo3g4u/7855b282ef144a97a7e4936a58f1894f to your computer and use it in GitHub Desktop.
Docker php7環境構築用Dockerfileのたたき台
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