Created
December 15, 2023 15:33
-
-
Save guibranco/5dbf03b3380964b117ddfc405ba4ecf7 to your computer and use it in GitHub Desktop.
Docker file for PHP 8.3 with Apache, MySQLi extension, GD2 extension and Apache mod_rewrite enabled
This file contains hidden or 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
FROM php:8.3-rc-apache | |
RUN apt-get update | |
RUN apt-get install --yes --force-yes cron g++ gettext libicu-dev openssl libc-client-dev libkrb5-dev libxml2-dev libfreetype6-dev libgd-dev libmcrypt-dev bzip2 libbz2-dev libtidy-dev libcurl4-openssl-dev libz-dev libmemcached-dev libxslt-dev | |
RUN a2enmod rewrite | |
RUN docker-php-ext-install mysqli | |
RUN docker-php-ext-enable mysqli | |
RUN docker-php-ext-configure gd --with-freetype=/usr --with-jpeg=/usr | |
RUN docker-php-ext-install gd | |
COPY ./ /var/www/html/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment