Skip to content

Commit 0710b6c

Browse files
authored
Merge pull request #340 from nextcloud/server-reduce-size
2 parents 6f7d8cc + 28a743f commit 0710b6c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

server/Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
FROM debian:stable
22

3-
# Update repos
3+
# Update repos install packages and cleanup
4+
# all in one step so we avoid large intermediate layers.
45
RUN 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

2320
COPY opcache-recommended.ini /usr/local/etc/php/conf.d/

0 commit comments

Comments
 (0)