Skip to content

Instantly share code, notes, and snippets.

@saitanay
Created December 31, 2020 14:34
Show Gist options
  • Save saitanay/72363544254f12a4ace97d17c3a05f32 to your computer and use it in GitHub Desktop.
Save saitanay/72363544254f12a4ace97d17c3a05f32 to your computer and use it in GitHub Desktop.
FROM php:7.2-apache
RUN apt-get update && \
apt-get install -y \
zlib1g-dev
RUN apt-get update -y && apt-get install -y sendmail libpng-dev
RUN apt-get update && \
apt-get install -y \
zlib1g-dev
RUN docker-php-ext-install mbstring
RUN docker-php-ext-install zip
RUN docker-php-ext-install gd bcmath sockets
RUN docker-php-ext-install pdo pdo_mysql zip
COPY php.ini /usr/local/etc/php/
RUN a2enmod rewrite
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
# Install Composer
COPY --from=composer:1.10.19 /usr/bin/composer /usr/local/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment