Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit 693343c

Browse files
authored
Merge pull request #253 from JPinkney/php-7.4
Add in PHP 7.4
2 parents b740ec2 + 8cbae17 commit 693343c

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

recipes/php/7.4/Dockerfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) 2019 Red Hat, Inc.
2+
# This program and the accompanying materials are made
3+
# available under the terms of the Eclipse Public License 2.0
4+
# which is available at https://www.eclipse.org/legal/epl-2.0/
5+
#
6+
# SPDX-License-Identifier: EPL-2.0
7+
#
8+
# Contributors:
9+
# Red Hat, Inc. - initial API and implementation
10+
11+
FROM php:7.4-apache
12+
13+
RUN apt-get -y update \
14+
&& apt-get install -y libicu-dev\
15+
tree \
16+
vim \
17+
wget \
18+
git \
19+
libzip-dev \
20+
zlib1g-dev \
21+
zip \
22+
&& docker-php-ext-configure intl \
23+
&& docker-php-ext-install intl \
24+
&& docker-php-ext-install zip mysqli pdo pdo_mysql \
25+
&& chmod -R 777 /etc/apache2 /var/www /var/lib/apache2 /var/log \
26+
&& chown -R www-data:www-data /var/www \
27+
\
28+
#change Apache configuration
29+
\
30+
&& sed -i "s/80/8080/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf \
31+
&& sed -i 's/\/var\/www\/html/\/projects/g' /etc/apache2/sites-available/000-default.conf \
32+
&& sed -i 's/\/var\/www/\/projects/g' /etc/apache2/apache2.conf \
33+
&& sed -i 's/None/All/g' /etc/apache2/sites-available/000-default.conf \
34+
&& echo "ServerName localhost" | tee -a /etc/apache2/apache2.conf
35+
36+
#add composer
37+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
38+
39+
WORKDIR /projects
40+
41+
CMD sleep infinity

0 commit comments

Comments
 (0)