ticket-693
Last change
on this file since dd16b3d was
f160ff2,
checked in by Antonio Emmanuel Guerrero Silva <aguerrero@…>, 8 months ago
|
refs #693 add docker files for test
|
-
Property mode set to
100644
|
File size:
940 bytes
|
Rev | Line | |
---|
[f160ff2] | 1 | FROM php:8.3-fpm-alpine |
---|
| 2 | ENV COMPOSER_ALLOW_SUPERUSER=1 |
---|
| 3 | |
---|
| 4 | # Install PHP extensions |
---|
| 5 | RUN docker-php-ext-install pdo mysqli pdo_mysql opcache |
---|
| 6 | |
---|
| 7 | # Install Zip and more extension |
---|
| 8 | RUN apk add --no-cache bash libzip-dev zip unzip |
---|
| 9 | RUN docker-php-ext-install zip |
---|
| 10 | |
---|
| 11 | # Install Composer |
---|
| 12 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
---|
| 13 | RUN composer self-update |
---|
| 14 | |
---|
| 15 | # Install bash |
---|
| 16 | RUN apk add --no-cache bash git jq moreutils openssh rsync yq |
---|
| 17 | |
---|
| 18 | ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ |
---|
| 19 | RUN chmod +x /usr/local/bin/install-php-extensions |
---|
| 20 | RUN install-php-extensions sockets |
---|
| 21 | |
---|
| 22 | # Add xdebug |
---|
| 23 | RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS |
---|
| 24 | RUN apk add --update linux-headers |
---|
| 25 | RUN pecl install xdebug |
---|
| 26 | RUN docker-php-ext-enable xdebug |
---|
| 27 | RUN apk del -f .build-deps |
---|
| 28 | |
---|
| 29 | COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.