Skip to content

Commit fd10c96

Browse files
authored
Reorder PHP extensions installation in Dockerfile
1 parent 1e964ab commit fd10c96

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

Dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ FROM php:${BASE_TAG} AS builder
66
# Copy everything from common for building
77
COPY ./common/ /common/
88

9-
# PHP extensions install script
10-
ARG IPE_VERSION=2.9.28
11-
ARG IPE_SHA256=2f5970453effac47cfcceafd6103948d78b566c2fb922a8ff639fe249db74aa7
12-
13-
RUN curl -fsSL \
14-
https://github.com/mlocati/docker-php-extension-installer/releases/download/${IPE_VERSION}/install-php-extensions \
15-
-o /usr/local/bin/install-php-extensions \
16-
&& echo "${IPE_SHA256} /usr/local/bin/install-php-extensions" | sha256sum -c - \
17-
&& chmod +x /usr/local/bin/install-php-extensions
18-
19-
209
# Install dependencies
2110
RUN apt-get update \
2211
&& apt-get upgrade -y \
@@ -31,6 +20,16 @@ RUN apt-get update \
3120
npm \
3221
unzip
3322

23+
# PHP extensions install script
24+
ARG IPE_VERSION=2.9.28
25+
ARG IPE_SHA256=2f5970453effac47cfcceafd6103948d78b566c2fb922a8ff639fe249db74aa7
26+
27+
RUN curl -fsSL \
28+
https://github.com/mlocati/docker-php-extension-installer/releases/download/${IPE_VERSION}/install-php-extensions \
29+
-o /usr/local/bin/install-php-extensions && \
30+
echo "${IPE_SHA256} /usr/local/bin/install-php-extensions" | sha256sum -c - && \
31+
chmod +x /usr/local/bin/install-php-extensions
32+
3433
RUN install-php-extensions intl mbstring mysqli curl pdo_mysql zip bcmath sockets exif amqp gd imap opcache
3534

3635
# Install composer

0 commit comments

Comments
 (0)