Skip to content

Commit

Permalink
Migrated from php:5.6-apache to php:7.4-apache.
Browse files Browse the repository at this point in the history
  • Loading branch information
thospfuller committed Jan 28, 2021
1 parent db9b6af commit b798a02
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM php:5.6-apache
FROM php:7.4-apache
MAINTAINER iteratec WPT Team <wpt@iteratec.de>

RUN chmod o+r /etc/resolv.conf

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y --allow-unauthenticated \
imagemagick \
Expand All @@ -23,7 +25,9 @@ RUN apt-get update && \
apt-get clean && \
apt-get autoclean

RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
RUN apt-get install libzip-dev -y

RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && \
docker-php-ext-install gd && \
docker-php-ext-install zip && \
docker-php-ext-install curl && \
Expand Down Expand Up @@ -53,6 +57,9 @@ RUN chown -R www-data:www-data /var/www/html && \

COPY docker/server/config/locations.ini /var/www/html/settings/locations.ini
COPY docker/server/config/php.ini /usr/local/etc/php/

RUN pear config-set php_ini /usr/local/etc/php/php.ini

COPY docker/server/config/apache2.conf /etc/apache2/apache2.conf
COPY docker/server/config/crontab /etc/crontab

Expand Down

0 comments on commit b798a02

Please sign in to comment.