1 Star 0 Fork 0

midoks/docker-php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 2.30 KB
一键复制 编辑 原始数据 按行查看 历史
midoks 提交于 2019-09-25 01:14 . up
#
# MAINTAINER midoks <[email protected]>
# DOCKER-VERSION 17.12.0-ce, build c97c6d6
#
# Dockerizing centos7: Dockerfile for building centos7 images
FROM centos:centos7.1.1503
MAINTAINER midoks <[email protected]>
ENV TZ "Asia/Shanghai"
ADD repo/aliyun-mirror.repo /etc/yum.repos.d/CentOS-Base.repo
ADD repo/aliyun-epel.repo /etc/yum.repos.d/epel.repo
RUN groupadd www
RUN useradd -g www -s /sbin/nologin www
RUN rpm --rebuilddb && yum -y install epel-release
RUN rpm --rebuilddb && yum install -y deltarpm && yum -y makecache fast
RUN rpm --rebuilddb && yum swap -y fakesystemd systemd && yum clean all
RUN rpm --rebuilddb && yum update -y && yum clean all
RUN rpm --rebuilddb && yum install -y python-pip
RUN pip install --upgrade pip && pip install supervisor
RUN rpm --rebuilddb && yum install -y curl wget tar bzip2 unzip vim-enhanced \
passwd sudo yum-utils hostname net-tools rsync man gcc gcc-c++ git make \
automake cmake patch logrotate python-devel libpng-devel libjpeg-devel \
pcre pcre-devel openssl openssl-devel libxml2 libxml2-devel
ADD supervisord/supervisord.conf /etc/supervisord.conf
RUN mkdir -p /etc/supervisor.conf.d && mkdir -p /var/log/supervisor
RUN mkdir -p /root/source
RUN wget -O /root/source/php-7.2.22.tar.bz2 https://www.php.net/distributions/php-7.2.22.tar.bz2
RUN cd /root/source && tar -xjf php-7.2.22.tar.bz2
RUN cd /root/source/php-7.2.22 && ./configure --prefix=/usr/local/php72 \
--exec-prefix=/usr/local/php72 \
--with-config-file-path=/usr/local/php72/etc \
--enable-mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--without-iconv \
--enable-zip \
--enable-mbstring \
--enable-opcache \
--enable-ftp \
--enable-wddx \
--enable-soap \
--enable-sockets \
--enable-simplexml \
--enable-posix \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-fpm \
--with-openssl-dir=/usr/lib64/openssl \
--with-openssl \
&& make && make install
RUN cd /usr/local/php72/bin && ./pecl install yaf
RUN cd /usr/local/php72/bin && ./pecl install swoole
ADD conf/php-fpm /usr/local/php72/php-fpm
ADD conf/php-fpm.conf /usr/local/php72/etc/php-fpm.conf
ADD conf/www.conf /usr/local/php72/etc/php-fpm.d/www.conf
ADD supervisord/php-fpm.conf /etc/supervisor.conf.d/php72-fpm.conf
EXPOSE 22
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/midoks/docker-php.git
[email protected]:midoks/docker-php.git
midoks
docker-php
docker-php
master

搜索帮助