Created
July 17, 2021 11:37
-
-
Save naneri/3dd88f4dc394343c58ecc6717e8fe23c to your computer and use it in GitHub Desktop.
php-docker
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:7.4-fpm | |
# Install any needed packages | |
RUN apt-get update -yqq && \ | |
apt-get install -yqq --no-install-recommends \ | |
apt-utils \ | |
openssl \ | |
libzip-dev zip unzip \ | |
git \ | |
mariadb-client \ | |
libpng-dev | |
# install php extensions | |
RUN apt-get update && apt-get install -y libmcrypt-dev mariadb-client \ | |
&& docker-php-ext-install pdo_mysql | |
COPY --from=composer:2.1 /usr/bin/composer /usr/bin/composer | |
WORKDIR /var/www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment