Skip to content

Instantly share code, notes, and snippets.

@otarim
Created August 23, 2017 13:37
Show Gist options
  • Select an option

  • Save otarim/2466c3c7d13dbdcbb7e9f1520bad864a to your computer and use it in GitHub Desktop.

Select an option

Save otarim/2466c3c7d13dbdcbb7e9f1520bad864a to your computer and use it in GitHub Desktop.
FROM centos:6.7
MAINTAINER tomori <otarim.com@gmail.com>
# install php httpd mysql
RUN yum -y update
RUN yum -y install epel-release wget
RUN wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RUN wget https://centos6.iuscommunity.org/ius-release.rpm
RUN rpm -Uvh ius-release*.rpm
RUN yum -y update
RUN yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath mysql-server httpd
# install redis
RUN yum install -y gcc gcc-c++ kernel-devel
RUN yum install -y tar xz
RUN curl -SLO http://download.redis.io/releases/redis-3.2.1.tar.gz \
&& tar -xvf redis-3.2.1.tar.gz \
&& cd redis-3.2.1 \
&& make \
&& make install \
&& cd src \
&& cp ./redis-server /usr/local/sbin \
&& cp ./redis-cli /usr/local/sbin
RUN echo "NETWORKING=yes" > /etc/sysconfig/network
ADD ./conf/my.cnf /etc/
ADD ./conf/redis.conf /etc/
EXPOSE 22 80 10091
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment