File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV PHP_BUILD_DEPS \
1818 libbison-dev \
1919 libcurl4-openssl-dev \
2020 libfl-dev \
21+ libmhash-dev \
2122 libmysqlclient-dev \
2223 libpcre3-dev \
2324 libreadline6-dev \
@@ -28,6 +29,7 @@ ENV PHP_BUILD_DEPS \
2829 libxml2-dev
2930
3031ENV PHP_RUNTIME_DEPS \
32+ libmhash2 \
3133 libmysqlclient18 \
3234 libpcre3 \
3335 librecode0 \
@@ -122,6 +124,7 @@ RUN set -eux \
122124### Copy PHP scripts
123125###
124126COPY data/docker-php-source /usr/local/bin/
127+ COPY data/php/php-${PHP_VERSION}.tar.xz /usr/src/php.tar.xz
125128
126129
127130###
@@ -137,9 +140,6 @@ RUN set -eux \
137140 apt-get install -y --no-install-recommends --no-install-suggests \
138141 ${BUILD_TOOLS_32}; \
139142 fi \
140- # Fetch PHP
141- && curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -o /usr/src/php.tar.xz \
142- && curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" -o /usr/src/php.tar.xz.asc \
143143# Setup Requirements
144144 && docker-php-source extract \
145145 && cd /usr/src/php \
@@ -203,7 +203,9 @@ RUN set -eux \
203203 ${PHP_RUNTIME_DEPS} \
204204 ${RUNTIME_TOOLS} \
205205 && apt-get clean \
206- && rm -rf /var/lib/apt/lists/*
206+ && rm -rf /var/lib/apt/lists/* \
207+ # Setup extension dir
208+ && mkdir -p "$(php -r 'echo ini_get("extension_dir");')"
207209
208210# Fix config.guess for PHP modules (adds 'aarch64' [arm64] architecture)
209211# The config.guess has been copied from PHP 5.5
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV PHP_BUILD_DEPS \
1818 libbison-dev \
1919 libcurl4-openssl-dev \
2020 libfl-dev \
21+ libmhash-dev \
2122 libmysqlclient-dev \
2223 libpcre3-dev \
2324 libreadline6-dev \
@@ -28,6 +29,7 @@ ENV PHP_BUILD_DEPS \
2829 libxml2-dev
2930
3031ENV PHP_RUNTIME_DEPS \
32+ libmhash2 \
3133 libmysqlclient18 \
3234 libpcre3 \
3335 librecode0 \
@@ -150,6 +152,7 @@ RUN set -eux \
150152### Copy PHP scripts
151153###
152154COPY data/docker-php-source /usr/local/bin/
155+ COPY data/php/php-${PHP_VERSION}.tar.xz /usr/src/php.tar.xz
153156
154157
155158###
@@ -165,9 +168,6 @@ RUN set -eux \
165168 apt-get install -y --no-install-recommends --no-install-suggests \
166169 ${BUILD_TOOLS_32}; \
167170 fi \
168- # Fetch PHP
169- && curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -o /usr/src/php.tar.xz \
170- && curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" -o /usr/src/php.tar.xz.asc \
171171# Setup Requirements
172172 && docker-php-source extract \
173173 && cd /usr/src/php \
@@ -231,7 +231,9 @@ RUN set -eux \
231231 ${PHP_RUNTIME_DEPS} \
232232 ${RUNTIME_TOOLS} \
233233 && apt-get clean \
234- && rm -rf /var/lib/apt/lists/*
234+ && rm -rf /var/lib/apt/lists/* \
235+ # Setup extension dir
236+ && mkdir -p "$(php -r 'echo ini_get("extension_dir");')"
235237
236238# Fix config.guess for PHP modules (adds 'aarch64' [arm64] architecture)
237239# The config.guess has been copied from PHP 5.5
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ ENV PHP_BUILD_DEPS \
1818 libbison-dev \
1919 libcurl4-openssl-dev \
2020 libfl-dev \
21+ libmhash-dev \
2122 libmariadbclient-dev-compat \
2223 libpcre3-dev \
2324 libreadline6-dev \
@@ -28,6 +29,7 @@ ENV PHP_BUILD_DEPS \
2829 libxml2-dev
2930
3031ENV PHP_RUNTIME_DEPS \
32+ libmhash2 \
3133 libmariadbclient-dev-compat \
3234 libpcre3 \
3335 librecode0 \
@@ -124,6 +126,7 @@ RUN set -eux \
124126### Copy PHP scripts
125127###
126128COPY data/docker-php-source /usr/local/bin/
129+ COPY data/php/php-${PHP_VERSION}.tar.xz /usr/src/php.tar.xz
127130
128131
129132###
@@ -139,9 +142,6 @@ RUN set -eux \
139142 apt-get install -y --no-install-recommends --no-install-suggests \
140143 ${BUILD_TOOLS_32}; \
141144 fi \
142- # Fetch PHP
143- && curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz/from/this/mirror" -o /usr/src/php.tar.xz \
144- && curl -sS -k -L --fail "http://php.net/get/php-$PHP_VERSION.tar.xz.asc/from/this/mirror" -o /usr/src/php.tar.xz.asc \
145145# Setup Requirements
146146 && docker-php-source extract \
147147 && cd /usr/src/php \
@@ -208,7 +208,9 @@ RUN set -eux \
208208 ${PHP_RUNTIME_DEPS} \
209209 ${RUNTIME_TOOLS} \
210210 && apt-get clean \
211- && rm -rf /var/lib/apt/lists/*
211+ && rm -rf /var/lib/apt/lists/* \
212+ # Setup extension dir
213+ && mkdir -p "$(php -r 'echo ini_get("extension_dir");')"
212214
213215# Fix config.guess for PHP modules (adds 'aarch64' [arm64] architecture)
214216# The config.guess has been copied from PHP 5.5
You can’t perform that action at this time.
0 commit comments