-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π§βπ» Attempt to fix codespaces dev image by installing bcmath
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG VARIANT=8.2-apache-bookworm | ||
FROM php:${VARIANT} | ||
|
||
# Install xdebug | ||
RUN yes | pecl install xdebug \ | ||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.mode = debug" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.start_with_request = yes" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.client_port = 9000" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& rm -rf /tmp/pear | ||
|
||
# Install composer | ||
RUN curl -sSL https://getcomposer.org/installer | php \ | ||
&& chmod +x composer.phar \ | ||
&& mv composer.phar /usr/local/bin/composer | ||
|
||
# "spryker/decimal-object" needs bcmath | ||
RUN docker-php-ext-install bcmath | ||
|
||
# [Optional] Uncomment this section to install additional packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters