Created
August 31, 2024 20:21
-
-
Save santaklouse/b4de0d0ffbecd20bab0d712ccaace06e to your computer and use it in GitHub Desktop.
php-8.2 Dockerfile
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.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