Sign inSign up

granruds/php

By granruds

•Updated over 3 years ago

This images includes php composer, xdebug, npm

Image
0

193

granruds/php repository overview

FROM php:8.2-apache

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/

⁠Install and enable xdebug for PHP

RUN pecl install xdebug-3.2.0
&& docker-php-ext-enable xdebug

⁠copy the config for xdebug

COPY docker-php-ext-xdebug.ini "$PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini"

⁠Install php composer, dependency manager

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update && apt-get install -y
zip
unzip
git

RUN curl -sL https://deb.nodesource.com/setup_18.x⁠ | bash - RUN apt-get install nodejs

⁠activate mod_rewrite

RUN a2enmod rewrite RUN a2enmod headers

WORKDIR /var/www/html/

Tag summary

Content type

Image

Digest

sha256:bc69fec3f…

Size

191.7 MB

Last updated

over 3 years ago

docker pull granruds/php:8.2-prod