1- FROM jdeathe/centos-ssh-apache-php:1.12 .0
1+ FROM jdeathe/centos-ssh-apache-php:1.13 .0
22
3- ARG RELEASE_VERSION="1.12 .0"
3+ ARG RELEASE_VERSION="1.13 .0"
44
55# ------------------------------------------------------------------------------
6- # - Base install of required packages
6+ # Base install of required packages
77# ------------------------------------------------------------------------------
8- RUN rpm --rebuilddb \
9- && yum -y erase \
8+ RUN yum -y erase \
109 php-5.3.3-49.el6 \
1110 && yum -y install \
1211 --setopt=tsflags=nodocs \
@@ -26,35 +25,33 @@ ADD src /
2625
2726# ------------------------------------------------------------------------------
2827# Provisioning
29- # - Relocate default fcgid configuration to ensure correct loading order
28+ # - Disable Apache default fcgid configuration; replaced with 00-fcgid.conf
3029# - Replace placeholders with values in systemd service unit template
3130# - Set permissions
3231# ------------------------------------------------------------------------------
33- RUN cat \
32+ RUN truncate -s 0 \
3433 /etc/httpd/conf.d/fcgid.conf \
35- > /etc/httpd/conf.d/00-fcgid.conf \
36- && truncate -s 0 \
34+ && chmod 444 \
3735 /etc/httpd/conf.d/fcgid.conf \
3836 && sed -i \
3937 -e "s~{{RELEASE_VERSION}}~${RELEASE_VERSION}~g" \
40- /etc/systemd/system/centos-ssh-apache-php-fcgi@.service \
41- && chmod 700 \
42- /usr/{bin/healthcheck,sbin/httpd-{bootstrap,wrapper}}
38+ /etc/systemd/system/centos-ssh-apache-php-fcgi@.service
4339
4440# ------------------------------------------------------------------------------
4541# Package installation
4642# ------------------------------------------------------------------------------
4743RUN sed -i \
4844 -e 's~^description =.*$~description = "This CentOS / Apache / PHP-CGI (FastCGI) service is running in a container."~' \
4945 ${PACKAGE_PATH}/etc/views/index.ini \
50- && sed -r -i \
51- -e 's~^(source /etc/httpd-bootstrap \. conf)~# \1 ~' \
52- ${PACKAGE_PATH}/bin/php-wrapper
46+ && rm -f \
47+ ${PACKAGE_PATH}/bin/php-wrapper \
48+ ${PACKAGE_PATH}/etc/httpd/conf.d/50-fcgid.conf
5349
5450# ------------------------------------------------------------------------------
5551# Set default environment variables used to configure the service container
5652# ------------------------------------------------------------------------------
57- ENV APACHE_MPM="worker"
53+ ENV \
54+ APACHE_MPM="worker"
5855
5956# ------------------------------------------------------------------------------
6057# Set image metadata
@@ -85,6 +82,6 @@ jdeathe/centos-ssh-apache-php-fcgi:${RELEASE_VERSION} \
8582 org.deathe.license="MIT" \
8683 org.deathe.vendor="jdeathe" \
8784 org.deathe.url="https://github.com/jdeathe/centos-ssh-apache-php-fcgi" \
88- org.deathe.description="CentOS-6 6.10 x86_64 - Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP APC 3.1."
85+ org.deathe.description="Apache 2.2, PHP-CGI 5.3 (FastCGI), PHP memcached 1.0, PHP redis 2.2, PHP APC 3.1 - CentOS-6 6.10 x86_64 ."
8986
9087CMD ["/usr/bin/supervisord" , "--configuration=/etc/supervisord.conf" ]
0 commit comments