Skip to content

Instantly share code, notes, and snippets.

@chihirokaasan
Created July 24, 2017 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihirokaasan/3e27139931c33f4bd9cbf0a4b167289c to your computer and use it in GitHub Desktop.
Save chihirokaasan/3e27139931c33f4bd9cbf0a4b167289c to your computer and use it in GitHub Desktop.
CentOS7のapacheベースのphp7のイメージ
FROM centos:centos7
MAINTAINER matsuda
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN yum -y install wget epel-release
RUN wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
RUN rpm -Uvh ./remi-release-7.rpm
RUN sed -i '4a priority=1' /etc/yum.repos.d/remi-php71.repo
RUN yum -y install --enablerepo=remi-php71 php php-fpm php-mcrypt php-cli php-common php-devel php-gd php-mbstring php-mysqlnd php-opcache php-pdo php-pear php-pecl-apcu php-pecl-zip php-process php-xml
RUN yum clean all
RUN yum install -y httpd
RUN yum clean all
RUN yum -y update
RUN yum clean all
RUN yum -y install git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment