Skip to content

Instantly share code, notes, and snippets.

@nozkok
Created July 23, 2019 11:22
Show Gist options
  • Select an option

  • Save nozkok/ff124d13d5688a04212530352d41b7d7 to your computer and use it in GitHub Desktop.

Select an option

Save nozkok/ff124d13d5688a04212530352d41b7d7 to your computer and use it in GitHub Desktop.
FROM php:7.3-apache
RUN apt-get update
RUN apt-get install -y \
git \
zip \
curl \
sudo \
unzip \
libicu-dev \
libbz2-dev \
libpng-dev \
libzip-dev \
libjpeg-dev \
libmcrypt-dev \
libreadline-dev \
libfreetype6-dev \
g++
ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN a2enmod rewrite headers
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
RUN docker-php-ext-install \
bz2 \
intl \
iconv \
bcmath \
opcache \
calendar \
mbstring \
pdo_mysql \
zip
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment