Skip to content

Instantly share code, notes, and snippets.

@naneri
Created July 17, 2021 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naneri/3dd88f4dc394343c58ecc6717e8fe23c to your computer and use it in GitHub Desktop.
Save naneri/3dd88f4dc394343c58ecc6717e8fe23c to your computer and use it in GitHub Desktop.
php-docker
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