Skip to content

Instantly share code, notes, and snippets.

@ara-ta3
Created January 31, 2018 06:08
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 ara-ta3/f3946630f4088c631971a3a87ee77ad3 to your computer and use it in GitHub Desktop.
Save ara-ta3/f3946630f4088c631971a3a87ee77ad3 to your computer and use it in GitHub Desktop.
tag=tarata/php-with-httpd
build:
docker build -f ./php-with-httpd -t $(tag) .
FROM centos:centos6
RUN yum install -y epel-release
RUN yum install -y http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
RUN yum update -y
RUN yum install -y mod_ssl tree sendmail sendmail-cf vim mysql nc
RUN yum install -y --enablerepo=remi,remi-php71 php php-common php-mysql php-xml php-simplexml httpd php-pecl-xdebug
RUN service httpd stop
RUN curl https://raw.githubusercontent.com/Eficode/wait-for/master/wait-for > /opt/wait-for
RUN chmod +x /opt/wait-for
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment