Last active
January 6, 2021 20:32
-
-
Save FerraBraiZ/f1c6caac168ee75d02b46274ae8e65bc to your computer and use it in GitHub Desktop.
php-apache-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
version: "3.4" | |
services: | |
webserver: | |
container_name: webserver | |
build: ./docker/php72apache | |
privileged: true | |
volumes: | |
- ./public_html/:/var/www/html/ | |
- ./docker/php72apache/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini | |
ports: | |
- "8080:80" | |
env_file: | |
- '.env' | |
volumes: | |
db_data: {} |
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.2-apache as webserver | |
# Fix debconf warnings upon build | |
ARG DEBIAN_FRONTEND=noninteractive | |
# system dependencies | |
RUN apt-get update -yy && apt-get install --no-install-recommends -yy \ | |
autoconf \ | |
build-essential \ | |
curl \ | |
gcc \ | |
iproute2 \ | |
libbz2-dev \ | |
libc-client-dev \ | |
libc-dev \ | |
libcurl4-gnutls-dev \ | |
libfontconfig1 \ | |
libfreetype6-dev \ | |
libicu-dev \ | |
libkrb5-dev \ | |
libmcrypt-dev \ | |
libmemcached-dev \ | |
libmemcached11 \ | |
libpcre3-dev \ | |
libpng-dev \ | |
libpq-dev \ | |
libssl-dev \ | |
libssl-dev \ | |
libxml2-dev \ | |
libxrender1 \ | |
make \ | |
musl-dev \ | |
net-tools \ | |
openssh-server \ | |
openssl \ | |
pkg-config \ | |
software-properties-common \ | |
wget \ | |
zlib1g-dev \ | |
gnupg \ | |
dirmngr \ | |
pwgen \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN docker-php-ext-install exif \ | |
&& docker-php-ext-install gd \ | |
&& docker-php-ext-install intl \ | |
&& docker-php-ext-install mbstring \ | |
&& docker-php-ext-install mysqli \ | |
&& docker-php-ext-install pdo_mysql \ | |
&& docker-php-ext-configure zip \ | |
&& docker-php-ext-install zip \ | |
&& a2enmod rewrite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment