Dockerfile optimizations

This commit is contained in:
Chris Kankiewicz
2020-08-20 21:31:47 -07:00
parent 37e49eb75a
commit ba34a06999

View File

@@ -1,9 +1,6 @@
FROM php:7.4-apache
LABEL maintainer="Chris Kankiewicz <Chris@ChrisKankiewicz.com>"
COPY .docker/apache/config/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini
RUN apt-get update && apt-get install --assume-yes libmemcached-dev libzip-dev \
&& rm -rf /var/lib/apt/lists/*
@@ -11,6 +8,9 @@ RUN docker-php-ext-install zip \
&& pecl install memcached redis xdebug \
&& docker-php-ext-enable memcached redis xdebug
RUN a2enmod rewrite
COPY .docker/apache/config/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini
WORKDIR /var/www/html
ENV PATH="app/vendor/bin:${PATH}"
RUN a2enmod rewrite