source: docker/Dockerfile-php @ ce6fe2e

test-python-scripts
Last change on this file since ce6fe2e 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
Line 
1FROM php:8.3-fpm-alpine
2ENV COMPOSER_ALLOW_SUPERUSER=1
3
4# Install PHP extensions
5RUN docker-php-ext-install pdo mysqli pdo_mysql opcache
6
7# Install Zip and more extension
8RUN apk add --no-cache bash libzip-dev zip unzip
9RUN docker-php-ext-install zip
10
11# Install Composer
12RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
13RUN composer self-update
14
15# Install bash
16RUN apk add --no-cache bash git jq moreutils openssh rsync yq
17
18ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
19RUN chmod +x /usr/local/bin/install-php-extensions
20RUN install-php-extensions sockets
21
22# Add xdebug
23RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS
24RUN apk add --update linux-headers
25RUN pecl install xdebug
26RUN docker-php-ext-enable xdebug
27RUN apk del -f .build-deps
28
29COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
30
Note: See TracBrowser for help on using the repository browser.