Skip to content

Commit db4f4c4

Browse files
committed
build(dockefile): Support of php zip ext
1 parent 3f9cf38 commit db4f4c4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,11 @@ RUN curl -sSfL -o /php-prefixer-cli.phar 'https://github.com/PHP-Prefixer/php-pr
1717
&& curl -sSfL -o /usr/local/bin/composer 'https://getcomposer.org/composer.phar' \
1818
&& chmod +x /usr/local/bin/composer \
1919
&& apt-get update \
20-
&& apt-get install -y --no-install-recommends git rsync \
20+
&& apt-get install -y --no-install-recommends git rsync libzip-dev zip \
21+
&& docker-php-ext-configure zip \
22+
&& docker-php-ext-install zip \
2123
&& rm -rf /var/lib/apt/lists/*
2224

23-
RUN apt-get install -y --no-install-recommends \
24-
libzip-dev \
25-
zip \
26-
&& docker-php-ext-configure zip \
27-
&& docker-php-ext-install zip \
28-
&& docker-php-ext-configure opcache \
29-
&& docker-php-ext-install opcache
30-
3125
COPY entrypoint.sh /
3226
RUN chmod +x /entrypoint.sh
3327
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)