Skip to content

Commit 17fdc66

Browse files
committed
PHP: install gd and intl
1 parent 17280f8 commit 17fdc66

File tree

16 files changed

+92
-56
lines changed

16 files changed

+92
-56
lines changed

5.6-fpm/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ ENV PHP_FPM_POOL_DIR=${PHP_FPM_DIR}/pool.d
1414
ENV TZ=Europe/Prague
1515

1616
# INSTALLATION
17-
RUN apt-get update && apt-get dist-upgrade -y && \
17+
RUN apt update && apt dist-upgrade -y && \
1818
# DEPENDENCIES #############################################################
19-
apt-get install -y wget curl apt-transport-https ca-certificates git unzip && \
19+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
2020
# PHP DEB.SURY.CZ ##########################################################
2121
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
22-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
22+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2323
apt update && \
24+
apt dist-upgrade -y && \
2425
apt install -y --no-install-recommends \
2526
php5.6-apc \
2627
php5.6-apcu \
@@ -63,7 +64,7 @@ RUN apt-get update && apt-get dist-upgrade -y && \
6364
rm ${PHP_FPM_POOL_DIR}/www.conf && \
6465
apt-get clean -y && \
6566
apt-get autoclean -y && \
66-
apt-get remove -y wget curl && \
67+
apt-get remove -y wget curl lsb-release && \
6768
apt-get autoremove -y && \
6869
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6970

5.6/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ ENV PHP_CGI_CONF_DIR=${PHP_CGI_DIR}/conf.d
1111
ENV TZ=Europe/Prague
1212

1313
# INSTALLATION
14-
RUN apt-get update && apt-get dist-upgrade -y && \
14+
RUN apt update && apt dist-upgrade -y && \
1515
# DEPENDENCIES #############################################################
16-
apt-get install -y wget curl apt-transport-https ca-certificates git unzip && \
16+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
1717
# PHP DEB.SURY.CZ ##########################################################
1818
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
19-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
19+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2020
apt update && \
21+
apt dist-upgrade -y && \
2122
apt install -y --no-install-recommends \
2223
php5.6-apc \
2324
php5.6-apcu \
@@ -57,7 +58,7 @@ RUN apt-get update && apt-get dist-upgrade -y && \
5758
# CLEAN UP #################################################################
5859
apt-get clean -y && \
5960
apt-get autoclean -y && \
60-
apt-get remove -y wget curl && \
61+
apt-get remove -y wget curl lsb-release && \
6162
apt-get autoremove -y && \
6263
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6364

7.0-fpm/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockette/debian:stretch
1+
FROM dockette/debian:buster
22

33
LABEL maintainer="[email protected]"
44

@@ -16,11 +16,12 @@ ENV TZ=Europe/Prague
1616
# INSTALLATION
1717
RUN apt update && apt dist-upgrade -y && \
1818
# DEPENDENCIES #############################################################
19-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
19+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
2020
# PHP DEB.SURY.CZ ##########################################################
2121
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
22-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
22+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2323
apt update && \
24+
apt dist-upgrade -y && \
2425
apt install -y --no-install-recommends \
2526
php7.0-apc \
2627
php7.0-apcu \
@@ -63,7 +64,7 @@ RUN apt update && apt dist-upgrade -y && \
6364
rm ${PHP_FPM_POOL_DIR}/www.conf && \
6465
apt-get clean -y && \
6566
apt-get autoclean -y && \
66-
apt-get remove -y wget curl && \
67+
apt-get remove -y wget curl lsb-release && \
6768
apt-get autoremove -y && \
6869
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6970

7.0/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockette/debian:stretch
1+
FROM dockette/debian:buster
22

33
LABEL maintainer="[email protected]"
44

@@ -13,11 +13,12 @@ ENV TZ=Europe/Prague
1313
# INSTALLATION
1414
RUN apt update && apt dist-upgrade -y && \
1515
# DEPENDENCIES #############################################################
16-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
16+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
1717
# PHP DEB.SURY.CZ ##########################################################
1818
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
19-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
19+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2020
apt update && \
21+
apt dist-upgrade -y && \
2122
apt install -y --no-install-recommends \
2223
php7.0-apc \
2324
php7.0-apcu \
@@ -57,7 +58,7 @@ RUN apt update && apt dist-upgrade -y && \
5758
# CLEAN UP #################################################################
5859
apt-get clean -y && \
5960
apt-get autoclean -y && \
60-
apt-get remove -y wget curl && \
61+
apt-get remove -y wget curl lsb-release && \
6162
apt-get autoremove -y && \
6263
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6364

7.1-fpm/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockette/debian:stretch
1+
FROM dockette/debian:buster
22

33
LABEL maintainer="[email protected]"
44

@@ -16,11 +16,12 @@ ENV TZ=Europe/Prague
1616
# INSTALLATION
1717
RUN apt update && apt dist-upgrade -y && \
1818
# DEPENDENCIES #############################################################
19-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
19+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
2020
# PHP DEB.SURY.CZ ##########################################################
2121
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
22-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
22+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2323
apt update && \
24+
apt dist-upgrade -y && \
2425
apt install -y --no-install-recommends \
2526
php7.1-apc \
2627
php7.1-apcu \
@@ -63,7 +64,7 @@ RUN apt update && apt dist-upgrade -y && \
6364
rm ${PHP_FPM_POOL_DIR}/www.conf && \
6465
apt-get clean -y && \
6566
apt-get autoclean -y && \
66-
apt-get remove -y wget curl && \
67+
apt-get remove -y wget curl lsb-release && \
6768
apt-get autoremove -y && \
6869
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6970

7.1/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockette/debian:stretch
1+
FROM dockette/debian:buster
22

33
LABEL maintainer="[email protected]"
44

@@ -13,11 +13,12 @@ ENV TZ=Europe/Prague
1313
# INSTALLATION
1414
RUN apt update && apt dist-upgrade -y && \
1515
# DEPENDENCIES #############################################################
16-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
16+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
1717
# PHP DEB.SURY.CZ ##########################################################
1818
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
19-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
19+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2020
apt update && \
21+
apt dist-upgrade -y && \
2122
apt install -y --no-install-recommends \
2223
php7.1-apc \
2324
php7.1-apcu \
@@ -57,7 +58,7 @@ RUN apt update && apt dist-upgrade -y && \
5758
# CLEAN UP #################################################################
5859
apt-get clean -y && \
5960
apt-get autoclean -y && \
60-
apt-get remove -y wget curl && \
61+
apt-get remove -y wget curl lsb-release && \
6162
apt-get autoremove -y && \
6263
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6364

7.2-fpm/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockette/debian:stretch
1+
FROM dockette/debian:buster
22

33
LABEL maintainer="[email protected]"
44

@@ -16,11 +16,12 @@ ENV TZ=Europe/Prague
1616
# INSTALLATION
1717
RUN apt update && apt dist-upgrade -y && \
1818
# DEPENDENCIES #############################################################
19-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
19+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
2020
# PHP DEB.SURY.CZ ##########################################################
2121
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
22-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
22+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2323
apt update && \
24+
apt dist-upgrade -y && \
2425
apt install -y --no-install-recommends \
2526
php7.2-apc \
2627
php7.2-apcu \
@@ -34,6 +35,8 @@ RUN apt update && apt dist-upgrade -y && \
3435
php7.2-fpm \
3536
php7.2-geoip \
3637
php7.2-gettext \
38+
php7.2-gd \
39+
php7.2-intl \
3740
php7.2-imap \
3841
php7.2-ldap \
3942
php7.2-mbstring \
@@ -59,7 +62,7 @@ RUN apt update && apt dist-upgrade -y && \
5962
rm ${PHP_FPM_POOL_DIR}/www.conf && \
6063
apt-get clean -y && \
6164
apt-get autoclean -y && \
62-
apt-get remove -y wget curl && \
65+
apt-get remove -y wget curl lsb-release && \
6366
apt-get autoremove -y && \
6467
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6568

7.2/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dockette/debian:stretch
1+
FROM dockette/debian:buster
22

33
LABEL maintainer="[email protected]"
44

@@ -13,11 +13,12 @@ ENV TZ=Europe/Prague
1313
# INSTALLATION
1414
RUN apt update && apt dist-upgrade -y && \
1515
# DEPENDENCIES #############################################################
16-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
16+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
1717
# PHP DEB.SURY.CZ ##########################################################
1818
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
19-
echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list && \
19+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2020
apt update && \
21+
apt dist-upgrade -y && \
2122
apt install -y --no-install-recommends \
2223
php7.2-apc \
2324
php7.2-apcu \
@@ -30,6 +31,8 @@ RUN apt update && apt dist-upgrade -y && \
3031
php7.2-curl \
3132
php7.2-geoip \
3233
php7.2-gettext \
34+
php7.2-gd \
35+
php7.2-intl \
3336
php7.2-imap \
3437
php7.2-ldap \
3538
php7.2-mbstring \
@@ -53,7 +56,7 @@ RUN apt update && apt dist-upgrade -y && \
5356
# CLEAN UP #################################################################
5457
apt-get clean -y && \
5558
apt-get autoclean -y && \
56-
apt-get remove -y wget curl && \
59+
apt-get remove -y wget curl lsb-release && \
5760
apt-get autoremove -y && \
5861
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
5962

7.3-fpm/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ ENV TZ=Europe/Prague
1616
# INSTALLATION
1717
RUN apt update && apt dist-upgrade -y && \
1818
# DEPENDENCIES #############################################################
19-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
19+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
2020
# PHP DEB.SURY.CZ ##########################################################
2121
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
22-
echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list && \
22+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2323
apt update && \
24+
apt dist-upgrade -y && \
2425
apt install -y --no-install-recommends \
2526
php7.3-apc \
2627
php7.3-apcu \
@@ -34,6 +35,8 @@ RUN apt update && apt dist-upgrade -y && \
3435
php7.3-fpm \
3536
php7.3-geoip \
3637
php7.3-gettext \
38+
php7.3-gd \
39+
php7.3-intl \
3740
php7.3-imap \
3841
php7.3-ldap \
3942
php7.3-mbstring \
@@ -58,7 +61,7 @@ RUN apt update && apt dist-upgrade -y && \
5861
rm ${PHP_FPM_POOL_DIR}/www.conf && \
5962
apt-get clean -y && \
6063
apt-get autoclean -y && \
61-
apt-get remove -y wget curl && \
64+
apt-get remove -y wget curl lsb-release && \
6265
apt-get autoremove -y && \
6366
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
6467

7.3/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ ENV TZ=Europe/Prague
1313
# INSTALLATION
1414
RUN apt update && apt dist-upgrade -y && \
1515
# DEPENDENCIES #############################################################
16-
apt install -y wget curl apt-transport-https ca-certificates git unzip && \
16+
apt install -y wget curl apt-transport-https ca-certificates lsb-release git unzip && \
1717
# PHP DEB.SURY.CZ ##########################################################
1818
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
19-
echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list && \
19+
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
2020
apt update && \
21+
apt dist-upgrade -y && \
2122
apt install -y --no-install-recommends \
2223
php7.3-apc \
2324
php7.3-apcu \
@@ -30,6 +31,8 @@ RUN apt update && apt dist-upgrade -y && \
3031
php7.3-curl \
3132
php7.3-geoip \
3233
php7.3-gettext \
34+
php7.3-gd \
35+
php7.3-intl \
3336
php7.3-imap \
3437
php7.3-ldap \
3538
php7.3-mbstring \
@@ -52,7 +55,7 @@ RUN apt update && apt dist-upgrade -y && \
5255
# CLEAN UP #################################################################
5356
apt-get clean -y && \
5457
apt-get autoclean -y && \
55-
apt-get remove -y wget curl && \
58+
apt-get remove -y wget curl lsb-release && \
5659
apt-get autoremove -y && \
5760
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
5861

0 commit comments

Comments
 (0)