Skip to content

Instantly share code, notes, and snippets.

@nicholascourage
Created April 10, 2024 16:48
Show Gist options
  • Save nicholascourage/cab0679a647f787371bdba457774e687 to your computer and use it in GitHub Desktop.
Save nicholascourage/cab0679a647f787371bdba457774e687 to your computer and use it in GitHub Desktop.
FROM php:8.3-fpm
WORKDIR /var/www/html
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions
RUN apt update \
&& apt install -y \
zlib1g-dev \
g++ \
git \
libicu-dev \
zip \
libzip-dev \
zip iputils-ping \
libaio1 \
libaio-dev \
wget \
curl \
redis
RUN install-php-extensions xsl opcache imap sockets apcu mysqli pdo_mysql zip xml soap curl mbstring openssl fileinfo http exif gd redis
# Install Composer
RUN curl -S https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN chown -R www-data:www-data /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment