From 8cbae17ed6c7e87ff776db7cefad70bfc79e69cc Mon Sep 17 00:00:00 2001 From: Josh Pinkney Date: Tue, 3 Mar 2020 09:21:20 -0500 Subject: [PATCH] Add in PHP 7.4 Signed-off-by: Josh Pinkney --- recipes/php/7.4/Dockerfile | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes/php/7.4/Dockerfile diff --git a/recipes/php/7.4/Dockerfile b/recipes/php/7.4/Dockerfile new file mode 100644 index 00000000..7e057790 --- /dev/null +++ b/recipes/php/7.4/Dockerfile @@ -0,0 +1,41 @@ +# Copyright (c) 2019 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation + +FROM php:7.4-apache + +RUN apt-get -y update \ + && apt-get install -y libicu-dev\ + tree \ + vim \ + wget \ + git \ + libzip-dev \ + zlib1g-dev \ + zip \ + && docker-php-ext-configure intl \ + && docker-php-ext-install intl \ + && docker-php-ext-install zip mysqli pdo pdo_mysql \ + && chmod -R 777 /etc/apache2 /var/www /var/lib/apache2 /var/log \ + && chown -R www-data:www-data /var/www \ + \ + #change Apache configuration + \ + && sed -i "s/80/8080/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf \ + && sed -i 's/\/var\/www\/html/\/projects/g' /etc/apache2/sites-available/000-default.conf \ + && sed -i 's/\/var\/www/\/projects/g' /etc/apache2/apache2.conf \ + && sed -i 's/None/All/g' /etc/apache2/sites-available/000-default.conf \ + && echo "ServerName localhost" | tee -a /etc/apache2/apache2.conf + +#add composer +COPY --from=composer:latest /usr/bin/composer /usr/bin/composer + +WORKDIR /projects + +CMD sleep infinity