Skip to content

Instantly share code, notes, and snippets.

@dataday
Created August 24, 2017 15:13
Show Gist options
  • Save dataday/f0f1e05622c682eca9af217b5ffe68e9 to your computer and use it in GitHub Desktop.
Save dataday/f0f1e05622c682eca9af217b5ffe68e9 to your computer and use it in GitHub Desktop.
Dockerfile.Centos6.php7 for use on CI ahead of AWS release
FROM registry.ci.api.domain.co.uk/rmp/centos6:base
MAINTAINER dataday <[email protected]>
VOLUME /usr/share/webapp-base
WORKDIR /usr/share/webapp-base
# machine dependencies
RUN yum update -y && yum install -y epel-release
RUN rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
RUN rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
# container dependencies
RUN yum-config-manager --enable remi --enable remi-php70 \
&& yum -y install \
perl curl zip git npm tar bzip2 lsof tree mod_ssl openssh-server zlib1g-dev httpd \
php70 php70-php php70-php-zip php70-php-phpdbg php70-php-xml php70-php-pecl-xdebug php70-php-intl php70-php-pecl-redis icu
RUN cat "/opt/remi/php70/enable" >> ~/.bashrc
EXPOSE 7080
ENTRYPOINT ["/usr/sbin/httpd", "-D", "FOREGROUND"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment