Skip to content

Commit ba07b4d

Browse files
committed
feat(dx): Split commands in Dockerfile to individual RUN to improve caching
1 parent c91a479 commit ba07b4d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
FROM php:8.1-cli
2-
RUN apt-get update \
3-
&& apt-get install -y \
4-
libzip-dev \
5-
unzip \
6-
git \
7-
wget \
8-
&& docker-php-ext-install -j$(nproc) bcmath sockets \
9-
&& wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 \
10-
&& mv test-reporter-latest-linux-amd64 /usr/bin/cc-test-reporter \
11-
&& chmod +x /usr/bin/cc-test-reporter \
12-
&& pecl install xdebug \
13-
&& docker-php-ext-enable xdebug && \
14-
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2+
RUN apt-get update
3+
RUN apt-get install -y \
4+
libzip-dev \
5+
unzip \
6+
git \
7+
wget
8+
RUN docker-php-ext-install -j$(nproc) bcmath sockets
9+
RUN wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
10+
RUN mv test-reporter-latest-linux-amd64 /usr/bin/cc-test-reporter
11+
RUN chmod +x /usr/bin/cc-test-reporter
12+
RUN pecl install xdebug
13+
RUN docker-php-ext-enable xdebug
14+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1515

1616
WORKDIR /opt/project
1717

0 commit comments

Comments
 (0)