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 11FROM debian:stable
22
3- # Update repos
3+ # Update repos install packages and cleanup
4+ # all in one step so we avoid large intermediate layers.
45RUN apt-get update && \
56 apt-get install -y wget gnupg2 git libzip4 apt-transport-https lsb-release ca-certificates && \
67 wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
78 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 \
1211 php7.3-gd php-imagick php7.3-intl php7.3-bz2 php7.3-xml \
1312 php7.3-mysql php7.3-zip php7.3-dev curl php7.3-curl \
1413 php-dompdf php-apcu redis-server php-redis php-smbclient \
1514 php7.3-ldap unzip php7.3-pgsql php7.3-sqlite make apache2 \
1615 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 && \
2118 rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
2219
2320COPY opcache-recommended.ini /usr/local/etc/php/conf.d/
You can’t perform that action at this time.
0 commit comments