Skip to content

Commit 8ff79cb

Browse files
committed
chore: Change Dockerfile
1 parent baa65ba commit 8ff79cb

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Dockerfile

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

1617
WORKDIR /opt/project
1718

0 commit comments

Comments
 (0)