Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Created August 31, 2024 20:21
Show Gist options
  • Save santaklouse/b4de0d0ffbecd20bab0d712ccaace06e to your computer and use it in GitHub Desktop.
Save santaklouse/b4de0d0ffbecd20bab0d712ccaace06e to your computer and use it in GitHub Desktop.
php-8.2 Dockerfile
FROM php:8.2-fpm
WORKDIR /var/www
RUN apt-get update && apt-get install -y \
build-essential \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libonig-dev \
libxml2-dev \
zip \
curl \
unzip \
git \
&& docker-php-ext-configure gd \
&& docker-php-ext-install pdo pdo_mysql mbstring exif pcntl bcmath gd
COPY . .
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer install
EXPOSE 9000
CMD ["php-fpm"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment