From ba34a069996c931435cace1c7df5d58f7cb0de99 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 20 Aug 2020 21:31:47 -0700 Subject: [PATCH] Dockerfile optimizations --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19b51e6..618fa1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ FROM php:7.4-apache LABEL maintainer="Chris Kankiewicz " -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