Skip to content

Commit 557a3fd

Browse files
authored
[Bug] Fixed dockerfile build steps for better caching (alexjustesen#1902)
1 parent fe93d5b commit 557a3fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/8.3/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ RUN apt-get update && apt-get upgrade -y \
3333
php8.3-xml php8.3-zip php8.3-bcmath php8.3-soap \
3434
php8.3-intl php8.3-readline \
3535
php8.3-msgpack php8.3-igbinary php8.3-redis \
36-
php8.3-memcached php8.3-pcov php8.3-xdebug
37-
38-
RUN curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \
36+
php8.3-memcached php8.3-pcov php8.3-xdebug \
37+
&& curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \
3938
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
4039
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \
4140
&& apt-get update \
@@ -50,8 +49,9 @@ RUN curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/
5049
&& apt-get install -y speedtest \
5150
&& apt-get -y autoremove \
5251
&& apt-get clean \
53-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
54-
&& echo "MAILTO=\"\"\n* * * * * sail /usr/bin/php /var/www/html/artisan schedule:run >> /dev/null 2>&1" > /etc/cron.d/laravel
52+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
53+
54+
RUN echo "MAILTO=\"\"\n* * * * * sail /usr/bin/php /var/www/html/artisan schedule:run >> /dev/null 2>&1" > /etc/cron.d/laravel
5555

5656
RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.3
5757

0 commit comments

Comments
 (0)