-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (29 loc) · 1.38 KB
/
Dockerfile
File metadata and controls
32 lines (29 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM centos:7
RUN yum update -y && yum clean all
RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
RUN yum -y install php55w-5.5.38-1.w7.x86_64 php55w-fpm php55w-pdo php55w-pgsql php55w-pecl-geoip php55w-devel php55w-mysql php55w-mbstring php55w-pecl-redis php55w-mcrypt php55w-opcache php55w-intl php55w-soap php55w-pear libgearman
RUN yum -y install httpd
COPY *.rpm /root/
COPY httpd.conf /etc/httpd/conf/
RUN echo "Listen 80" > /etc/httpd/conf/ports.conf
COPY devwww.com.conf /etc/httpd/conf.d/
RUN cp /etc/mime.types /etc/httpd/conf/
RUN rpm -ivh /root/ZendFramework-1.11.12-1.x86_64.rpm
RUN rpm -ivh /root/GeoIP-initial-0.1-1.x86_64.rpm
RUN rpm -ivh /root/php55w-pecl-gearman-1.1.2-1.w7.src.rpm
RUN rpm -ivh /root/php55w-pecl-gearman-1.1.2-1.w7.x86_64.rpm
RUN echo 127.0.0.1 devwww.cram.com > /etc/hosts
#COPY GeoIP.conf.erb /etc/GeoIP/GeoIP.conf
COPY mongo.so /usr/lib64/php/modules/
COPY mongo.ini /etc/php.d/
COPY php.ini /etc/
#COPY httpd-start /usr/local/bin
RUN echo "#!/bin/bash" > /usr/local/bin/httpd-start
RUN echo "set -e" >> /usr/local/bin/httpd-start
RUN echo "rm -f /usr/local/apache2/logs/httpd.pid" >> /usr/local/bin/httpd-start
RUN echo "exec httpd -DFOREGROUND" >> /usr/local/bin/httpd-start
RUN chmod 777 /usr/local/bin/httpd-start
CMD ["httpd-start"]
EXPOSE 80
EXPOSE 443