Skip to content

Commit c22996b

Browse files
committed
update Ubuntu 18.04 & PHP 7.3
1 parent 26cc0d7 commit c22996b

File tree

3 files changed

+39
-37
lines changed

3 files changed

+39
-37
lines changed

Dockerfile

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
MAINTAINER Jason Gegere <jason@htmlgraphic.com>
33

4+
ENV OS_LOCALE="en_US.UTF-8"
5+
RUN apt-get update && apt-get install -y locales && locale-gen ${OS_LOCALE}
6+
ENV LANG=${OS_LOCALE} \
7+
LANGUAGE=${OS_LOCALE} \
8+
LC_ALL=${OS_LOCALE} \
9+
DEBIAN_FRONTEND=noninteractive
10+
411
# Install packages then remove cache package list information
5-
ENV DEBIAN_FRONTEND noninteractive
6-
7-
RUN apt-get update && apt-get install -yq --no-install-recommends python-software-properties software-properties-common \
8-
apache2 \
9-
php7.0 \
10-
cron \
11-
curl \
12-
ghostscript \
13-
mailutils \
14-
iputils-ping \
15-
libapache2-mod-php7.0 \
16-
mysql-client \
17-
php-apcu \
18-
php-imagick \
19-
php7.0-fpm \
20-
php7.0-zip \
21-
php7.0-mysql \
22-
php7.0-curl \
23-
php7.0-gd \
24-
php7.0-json \
25-
php7.0-mcrypt \
26-
php7.0-mbstring \
27-
php7.0-opcache \
28-
php7.0-xml \
29-
libgs-dev \
30-
imagemagick \
31-
libmagickwand-dev \
32-
language-pack-en \
33-
supervisor \
34-
rsyslog \
35-
vim \
36-
wget \
37-
postfix && apt-get clean && rm -rf /var/lib/apt/lists/*
12+
RUN \
13+
BUILD_DEPS='software-properties-common' \
14+
&& dpkg-reconfigure locales \
15+
&& apt-get install --no-install-recommends -y $BUILD_DEPS \
16+
&& add-apt-repository -y ppa:ondrej/php \
17+
&& add-apt-repository -y ppa:ondrej/apache2 \
18+
&& apt-get update \
19+
&& apt-get install -y curl apache2 libapache2-mod-php7.3 php7.3-cli php7.3-readline php7.3-mbstring php7.3-zip php7.3-intl php7.3-xml php7.3-json php7.3-curl php7.3-gd php7.3-pgsql php7.3-mysql php-pear \
20+
&& apt-get update && apt-get install -yq --no-install-recommends \
21+
git \
22+
cron \
23+
ghostscript \
24+
mailutils \
25+
iputils-ping \
26+
mysql-client \
27+
libgs-dev \
28+
imagemagick \
29+
libmagickwand-dev \
30+
language-pack-en \
31+
supervisor \
32+
rsyslog \
33+
vim \
34+
wget \
35+
postfix \
36+
# Cleaning
37+
&& apt-get purge -y --auto-remove $BUILD_DEPS \
38+
&& apt-get autoremove -y \
39+
&& rm -rf /var/lib/apt/lists/*
3840

3941
# POSTFIX
4042
RUN update-locale LANG=en_US.UTF-8
@@ -66,7 +68,7 @@ RUN tar xf /opt/app/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C /opt && mv /o
6668
RUN wkhtmltopdf --version
6769

6870
# Enable Apache mods.
69-
RUN a2enmod userdir && a2enmod rewrite && a2enmod ssl && a2enmod expires
71+
RUN a2enmod userdir rewrite ssl
7072

7173
# Environment variables contained within build container.
7274
ENV TERM=xterm \

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build a container via the command "make build"
22
# By Jason Gegere <jason@htmlgraphic.com>
33

4-
TAG = 1.7.2
4+
TAG = 1.8.0
55
CONTAINER = apache
66
IMAGE_REPO = htmlgraphic
77
IMAGE_NAME = $(IMAGE_REPO)/$(CONTAINER)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Beerpay](https://beerpay.io/htmlgraphic/Apache/badge.svg?style=beer)](https://beerpay.io/htmlgraphic/Apache) [![Beerpay](https://beerpay.io/htmlgraphic/Apache/make-wish.svg?style=flat)](https://beerpay.io/htmlgraphic/Apache)
77

88

9-
This repo will give you a turn key Docker container build for use in production OR local development. The setup includes an Apache web service, PHP 7.0, PHP Composer, linked MySQL instance and a data container volume.
9+
This repo will give you a turn key Docker container build for use in production OR local development. The setup includes an Apache web service, PHP 7.3, PHP Composer, linked MySQL instance and a data container volume.
1010

1111
In this repo you will find a number of complete Dockerfile builds used in **development** and **production** environments. Listed below is an explanation of each file. [Ask a question!](https://github.com/htmlgraphic/Apache/issues/new)
1212

0 commit comments

Comments
 (0)