Commit ade22845 authored by Dave Lane's avatar Dave Lane
Browse files

update to PHP 7.4 and phpredis 5.3.3 and to Debian Buster for nginx

parent e64337ac
......@@ -5,7 +5,7 @@ Suitable for running a production WordPress Multisite.
Includes Nginx configuration, Composer, Outgoing Authenticated SMTP email, and Cron capabilities.
Latest containers (on hub.docker.com): oeru/php72-fpm, oeru/php72-fpm-xdebug, oeru/php72-fpm-cron, oeru/nginx
Latest containers (on hub.docker.com): oeru/php74-fpm, oeru/php74-fpm-cron-wp, oeru/nginx-stretch-wp - replacing (20210225) the previous set of containers (on hub.docker.com): oeru/php72-fpm, oeru/php72-fpm-xdebug, oeru/php72-fpm-cron, oeru/nginx
# License
......
FROM oeru/php72-fpm
FROM oeru/php74-fpm
MAINTAINER Dave Lane <dave@oerfoundation.org> (@lightweight)
# note: cron is already installed.
......
FROM debian:jessie
FROM debian
# Forked from:
# MAINTAINER Real Geeks "kevin@realgeeks.com"
# MAINTAINER Eric McNiece "hello@emc2innovation.com"
MAINTAINER Dave Lane <dave@oerfoundation> @lightweight
MAINTAINER Dave Lane <dave@oerfoundation.org> @lightweight@mastodon.nzoss.nz
ENV NGINX_VERSION=1.13.7
ENV NGINX_VERSION=1.19.7
ENV NGX_CACHE_PURGE_VERSION=2.3
# Install basic packages and build tools
......@@ -15,6 +15,7 @@ RUN apt-get update && apt-get install -y \
libssl-dev \
libpcre3 \
libpcre3-dev \
zlib1g-dev\
&& apt-get clean
# Get sources
......
......@@ -20,7 +20,7 @@ map $blogname $blogid{
# statements for each of your virtual hosts to this file
server {
listen 0.0.0.0:80;
listen 80;
root /var/www/html;
index index.php index.html index.htm;
......
FROM php:7.2-fpm
FROM php:7.4-fpm
MAINTAINER Dave Lane <dave@oerfoundation.org> (@lightweight)
ENV PHPREDIS_VERSION 4.3.0
ENV PHPREDIS_VERSION 5.3.3
# Install PHP extensions
RUN apt-get update && apt-get install -y apt-utils git less libbz2-dev libc-client-dev \
libcurl4-gnutls-dev libicu-dev libkrb5-dev libmcrypt-dev libpng-dev \
libpspell-dev libssl-dev libxml2-dev mariadb-client sudo telnet unzip zip
libcurl4-gnutls-dev libicu-dev libkrb5-dev libmcrypt-dev libonig-dev libpng-dev \
libpspell-dev libssl-dev libxml2-dev libzip-dev mariadb-client sudo telnet unzip zip
RUN apt-get install -y net-tools vim dnsutils
# install cron and msmtp for outgoing email
RUN apt-get install -y cron msmtp msmtp-mta mailutils
......
......@@ -64,19 +64,14 @@ else
echo >&2 "not configuring MSMTP - set SMTP_HOST and related environment values to enable."
fi
# run composer to set up dependencies if not already there...
#if ! [ -e vendor/autoload.php ]; then
# echo >&2 "installing dependencies with Composer"
# if ! [ -e /usr/local/bin/composer ]; then
# echo >&2 "first getting Composer"
# # Get Composer
# curl -S https://getcomposer.org/installer | php
# chmod a+x composer.phar
# mv composer.phar /usr/local/bin/composer
# fi
#else
# echo >&2 "vendor dependencies already in place."
#fi
# install composer
if ! [ -e /usr/local/bin/composer ]; then
echo >&2 "getting Composer"
# Get Composer
curl -S https://getcomposer.org/installer | php
chmod a+x composer.phar
mv composer.phar /usr/local/bin/composer
fi
if ! [ -e /usr/local/bin/wp ] ; then
echo >&2 "installing wp-cli as /usr/local/bin/wp!"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment