Skip to content

Commit 730aa15

Browse files
committed
Utilize buildkit concurrency
1 parent 2ffb119 commit 730aa15

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

Dockerfile-nts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ COPY src/php/conf/ /usr/local/etc/php/conf.d/
5757
COPY src/php/cli/conf/*.ini /usr/local/etc/php/conf.d/
5858

5959
RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
60-
mv /*.so "$EXTENSION_DIR/" && \
61-
apk update && \
60+
mv /*.so "$EXTENSION_DIR/"
61+
RUN apk update && \
6262
apk add --no-cache \
6363
freetype-dev \
6464
libjpeg-turbo-dev \
@@ -75,15 +75,16 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
7575
$PHPIZE_DEPS \
7676
&& if [ $(php -v | grep 7.4 | wc -l) != 0 ] ; then docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/; else docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/; fi \
7777
&& docker-php-ext-install -j$(nproc) gd pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv \
78-
&& pecl install vips \
79-
&& docker-php-ext-enable uv \
80-
&& docker-php-ext-enable vips \
81-
&& apk del $PHPIZE_DEPS \
82-
&& wget -O - https://raw.githubusercontent.com/eficode/wait-for/master/wait-for > /bin/wait-for \
83-
&& chmod +x /bin/wait-for \
84-
&& rm -rf /var/cache/apk/* \
85-
&& rm -rf /tmp/* \
86-
&& rm -rf /usr/lib/python*
78+
RUN pecl install vips \
79+
&& docker-php-ext-enable vips
80+
81+
RUN docker-php-ext-enable uv
82+
RUN apk del $PHPIZE_DEPS
83+
RUN wget -O - https://raw.githubusercontent.com/eficode/wait-for/master/wait-for > /bin/wait-for \
84+
&& chmod +x /bin/wait-for
85+
RUN rm -rf /var/cache/apk/*
86+
RUN rm -rf /tmp/*
87+
RUN rm -rf /usr/lib/python*
8788

8889
# Install shush
8990
COPY src/php/utils/install-shush /usr/local/bin/

0 commit comments

Comments
 (0)