File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian:stable
2
2
3
- # Update repos
3
+ # Update repos install packages and cleanup
4
+ # all in one step so we avoid large intermediate layers.
4
5
RUN apt-get update && \
5
6
apt-get install -y wget gnupg2 git libzip4 apt-transport-https lsb-release ca-certificates && \
6
7
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
7
8
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && \
8
- apt-get update
9
-
10
- # Install packages
11
- RUN apt-get install -y php7.3-cli php7.3-common php7.3-mbstring \
9
+ apt-get update && \
10
+ apt-get install -y php7.3-cli php7.3-common php7.3-mbstring \
12
11
php7.3-gd php-imagick php7.3-intl php7.3-bz2 php7.3-xml \
13
12
php7.3-mysql php7.3-zip php7.3-dev curl php7.3-curl \
14
13
php-dompdf php-apcu redis-server php-redis php-smbclient \
15
14
php7.3-ldap unzip php7.3-pgsql php7.3-sqlite make apache2 \
16
15
php7.3-json php7.3-opcache libmagickcore-6.q16-2-extra \
17
- libapache2-mod-php7.3
18
-
19
- # Cleanup
20
- RUN apt-get autoremove -y && apt-get autoclean && apt-get clean && \
16
+ libapache2-mod-php7.3 && \
17
+ apt-get autoremove -y && apt-get autoclean && apt-get clean && \
21
18
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
22
19
23
20
COPY opcache-recommended.ini /usr/local/etc/php/conf.d/
You can’t perform that action at this time.
0 commit comments