Skip to content

Commit 83ae91b

Browse files
committed
Utilize buildkit concurrency
1 parent f1570ec commit 83ae91b

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
@@ -56,8 +56,8 @@ COPY src/php/conf/ /usr/local/etc/php/conf.d/
5656
COPY src/php/cli/conf/*.ini /usr/local/etc/php/conf.d/
5757

5858
RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
59-
mv /*.so "$EXTENSION_DIR/" && \
60-
apk update && \
59+
mv /*.so "$EXTENSION_DIR/"
60+
RUN apk update && \
6161
apk add --no-cache \
6262
freetype-dev \
6363
libjpeg-turbo-dev \
@@ -74,15 +74,16 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
7474
$PHPIZE_DEPS \
7575
&& 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 \
7676
&& docker-php-ext-install -j$(nproc) gd pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv \
77-
&& pecl install vips \
78-
&& docker-php-ext-enable uv \
79-
&& docker-php-ext-enable vips \
80-
&& apk del $PHPIZE_DEPS \
81-
&& wget -O - https://raw.githubusercontent.com/eficode/wait-for/master/wait-for > /bin/wait-for \
82-
&& chmod +x /bin/wait-for \
83-
&& rm -rf /var/cache/apk/* \
84-
&& rm -rf /tmp/* \
85-
&& rm -rf /usr/lib/python*
77+
RUN pecl install vips \
78+
&& docker-php-ext-enable vips
79+
80+
RUN docker-php-ext-enable uv
81+
RUN apk del $PHPIZE_DEPS
82+
RUN wget -O - https://raw.githubusercontent.com/eficode/wait-for/master/wait-for > /bin/wait-for \
83+
&& chmod +x /bin/wait-for
84+
RUN rm -rf /var/cache/apk/*
85+
RUN rm -rf /tmp/*
86+
RUN rm -rf /usr/lib/python*
8687

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

0 commit comments

Comments
 (0)