|
1 |
| -FROM ubuntu:16.04 |
| 1 | +FROM ubuntu:18.04 |
2 | 2 | MAINTAINER Jason Gegere <jason@htmlgraphic.com>
|
3 | 3 |
|
| 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 | + |
4 | 11 | # 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/* |
38 | 40 |
|
39 | 41 | # POSTFIX
|
40 | 42 | 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
|
66 | 68 | RUN wkhtmltopdf --version
|
67 | 69 |
|
68 | 70 | # Enable Apache mods.
|
69 |
| -RUN a2enmod userdir && a2enmod rewrite && a2enmod ssl && a2enmod expires |
| 71 | +RUN a2enmod userdir rewrite ssl |
70 | 72 |
|
71 | 73 | # Environment variables contained within build container.
|
72 | 74 | ENV TERM=xterm \
|
|
0 commit comments