Skip to content

Commit

Permalink
feat(dx): Split commands in Dockerfile to individual RUN to improve c…
Browse files Browse the repository at this point in the history
…aching
  • Loading branch information
exaby73 committed Oct 30, 2024
1 parent c91a479 commit ba07b4d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM php:8.1-cli
RUN apt-get update \
&& apt-get install -y \
libzip-dev \
unzip \
git \
wget \
&& docker-php-ext-install -j$(nproc) bcmath sockets \
&& wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 \
&& mv test-reporter-latest-linux-amd64 /usr/bin/cc-test-reporter \
&& chmod +x /usr/bin/cc-test-reporter \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN apt-get update
RUN apt-get install -y \
libzip-dev \
unzip \
git \
wget
RUN docker-php-ext-install -j$(nproc) bcmath sockets
RUN wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
RUN mv test-reporter-latest-linux-amd64 /usr/bin/cc-test-reporter
RUN chmod +x /usr/bin/cc-test-reporter
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

WORKDIR /opt/project

Expand Down

0 comments on commit ba07b4d

Please sign in to comment.