Skip to content

Commit ada84d5

Browse files
authored
Fix #90. PHP extension dir (#91)
Fix #90. Removes hardcoded extension dir to make future PHP upgrades easier.
1 parent e510b80 commit ada84d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docker/Dockerfile-php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ RUN apk add --no-cache \
4848
# for zip extension
4949
libzip
5050

51-
5251
# Get the extensions from build stage
53-
# The no-debug-* dir will change with PHP versions
54-
COPY --from=build /usr/local/lib/php/extensions/no-debug-non-zts-20240924/* /usr/local/lib/php/extensions/no-debug-non-zts-20240924/
52+
# Copy the entire extensions folder including the sub-directory
53+
COPY --from=build /usr/local/lib/php/extensions/ /usr/local/lib/php/extensions
5554
COPY --from=build /usr/local/etc/php/conf.d/* /usr/local/etc/php/conf.d/
5655

5756
# Install composer

0 commit comments

Comments
 (0)