Sign inSign up

dekpo/my-custom-php

By dekpo

•Updated over 3 years ago

This is a custom php8 image with some useful tools...

Image
0

213

dekpo/my-custom-php repository overview

For your information here is the Dockerfile that has been used to generate this image:

⁠Of course we use official PHP8 Docker image

FROM php:8-apache

⁠Apache enable rewrite and ssl mod

RUN a2enmod rewrite &&
a2enmod ssl

⁠Debian update and configuration

RUN apt update &&
apt install -y git vim nano zip unzip wget
libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
libfreetype6-dev libjpeg62-turbo-dev libpng-dev

⁠PHP configuration and composer install

RUN docker-php-ext-configure gd --with-freetype --with-jpeg &&
docker-php-ext-install mysqli pdo pdo_mysql exif intl -j$(nproc) gd &&
curl -sS https://getcomposer.org/installer⁠ | php -- --install-dir=/usr/local/bin --filename=composer

⁠Optional symfony-cli install

RUN wget https://get.symfony.com/cli/installer⁠ -O - | bash &&
mv /root/.symfony5/bin/symfony /usr/local/bin/symfony

⁠Expose port 80

EXPOSE 80

⁠Expose port 443

EXPOSE 443

Tag summary

Content type

Image

Digest

sha256:5d2c42f07…

Size

252.3 MB

Last updated

over 3 years ago

docker pull dekpo/my-custom-php