Skip to content

Commit f13aa16

Browse files
authored
Merge pull request #61 from smcleaner/more-secure-dockerfile
Chore: reduce attack surface for Docker image
2 parents 73134b2 + 6101bcb commit f13aa16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1/apache/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM php:8.1-apache
44
RUN a2enmod rewrite
55

66
# install the PHP extensions we need
7-
RUN apt-get update && apt-get install -y libzip-dev libonig-dev libpng-dev libjpeg-dev libpq-dev \
7+
RUN apt-get update && apt-get install -y --no-install-recommends libzip-dev libonig-dev libpng-dev libjpeg-dev libpq-dev \
88
&& rm -rf /var/lib/apt/lists/* \
99
&& docker-php-ext-configure gd --with-jpeg=/usr \
1010
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip

0 commit comments

Comments
 (0)